gpt4 book ai didi

jsp - 如何在 c :if statement in jsp 中做 OR

转载 作者:行者123 更新时间:2023-12-04 07:08:36 24 4
gpt4 key购买 nike

我如何正确声明一个或声明我尝试这个没有成功:


最佳答案

按位包含 OR --> |

逻辑或 --> ||

所以...

if ( true || false )
{
/* the first expression is evaluated, it is true, we enter the 'if' block */
}

int i = 1 | 0; /* i == 1 */

关于jsp - 如何在 c :if statement in jsp 中做 OR,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/710688/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com