XPL Operator Precedence |
Priority | Operator | Interpretation |
7 (lowest) | | | Logical OR of numeric values |
6 | & | Logical AND of numeric values |
5 | ¬ | Logical complement of conditional or numeric value |
4 | = | Condition TRUE if values are equal ¹ |
< | Condition TRUE if first operand less than second |
> | Condition TRUE if first operand greater than second |
¬ = | Condition TRUE if values are NOT equal |
¬ < | Same as > = |
¬ > | Same as < = |
< = | Condition TRUE if first operand less than or equal to second |
> = | Condition TRUE if first operand greater than or equal to second |
3 | || | String concatenation Non-string operands will
be converted to strings. |
2 | + | 32-bit signed two's-complement addition |
+ | Unary + |
- | 32-bit signed two's-complement subtraction |
- | Unary -; 32-bit two's-complement |
1 (highest) | * | Signed 32-bit multiplication |
/ | Signed 32-bit division. Divide by zero causes interrupt |
mod | 32-bit remainder from division |
¹ String comparisons are done first by length. If the lengths are equal the strings are
then compared on a character basis.