YENGShortcircuit
From OpenSimulator
(Difference between revisions)
m (Line number clarification) |
|||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | + | Operators &&& and ||| are AND and OR logic operators that evaluate the expression to their left and will only evaluate the expression to their right, if the one at left does not define the result. | |
+ | |||
+ | Make sure to add yoptions; to the second line of the script, usually line number 1 starting from 0. | ||
&&& will not evaluate right side if left is FALSE | &&& will not evaluate right side if left is FALSE | ||
||| will not evaluate right side if left is TRUE | ||| will not evaluate right side if left is TRUE | ||
− | + | Care using () to make complex expressions more clear. | |
+ | |||
+ | [[Category:Scripts]] |
Latest revision as of 14:05, 16 March 2021
Operators &&& and ||| are AND and OR logic operators that evaluate the expression to their left and will only evaluate the expression to their right, if the one at left does not define the result.
Make sure to add yoptions; to the second line of the script, usually line number 1 starting from 0.
&&& will not evaluate right side if left is FALSE ||| will not evaluate right side if left is TRUE
Care using () to make complex expressions more clear.