Logical Operators
These rules use boolean operands (numerical values with 0 for false and not 0 for true) and return boolean values encoded as 0 or 1 numerical values.
And
And logical operator.
Or
Or logical operator.
Not
Not logical operator.
If
Ternary operator returning second operand (true) or third operand (false) according to the condition in first operand.
IfC
Ternary operator returning second operand (true) or third operand (false) according to the condition in first operand.
IfD
Ternary operator returning second operand (true) or third operand (false) according to the condition in first operand.
IfT
Ternary operator returning second operand (true) or third operand (false) according to the condition in first operand.
IfTS
Ternary operator returning second operand (true) or third operand (false) according to the condition in first operand.
IfTSTZ
Ternary operator returning second operand (true) or third operand (false) according to the condition in first operand.
Switch
Switch operator that returns the numerical value corresponding to the index given by the test operand if it is between 1 and K. The default value is returned if the index if outside the bounds.
SwitchC
Categorical SwitchC(Numerical test, Categorical valueDefault, Categorical value1, ..., Categorical valueK)
Switch operator that returns the categorical value corresponding to the index given by the test operand if it is between 1 and K. The default value is returned if the index if outside the bounds.