YENGShortcircuit

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
m (Add into category)
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.
+
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 include yoptions; on second line of script.
  
 
  &&& will not evaluate right side if left is FALSE
 
  &&& will not evaluate right side if left is FALSE

Revision as of 15:36, 20 November 2020

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 include yoptions; on second line of script.
&&& 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.

Personal tools
General
About This Wiki