Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要检查表达式的有效性,如果它是真的,那么检查 2nd exp。它可以写成 2 个 if-end 结构,但我想将条件放在条件断点中,我认为不可能在一行中写 2 个 if。但是AndAlso可以解决我的问题。任何的想法?
如果您使用快捷方式ANDie &&,则仅在第一个语句为真时才评估第二个语句。因此,像
AND
&&
i>1 && foo(i)==3
应该做的伎俩。