(& and !) can be used almost everywhere, but not recommended because both operands will be calculated. And sometimes it can cause some unexpected behaviour. Look at my example
USER>set a=1 if a!$i(a) zw a a=2
even when the first expression already truth second one also calculated and increased the value
USER>set a=1 if a||$i(a) zw a a=1
In this case, the first expression already truthy, and in OR condition it's enough to make full logical expression truthy as well, and not need to calculate the second expression.
- Log in to post comments



