Operator Precedence
- Last UpdatedMay 13, 2025
- 1 minute read
Operators are evaluated in the order of the following list: the ones at the top of the list are evaluated first.
|
Operator |
Comments |
|
BRACKETS |
Brackets can be used to control the order in which operators are evaluated, in the same way as in normal arithmetics. For example: |
|
FUNCTIONS |
|
|
* / |
Multiplication or division. |
|
+ - |
Addition or subtraction. |
|
EQ |
Equal to |
|
NE and NEQ |
Not equal to. |
|
GT |
Greater than. |
|
LT |
Less than. |
|
GE and GEQ |
Greater than or equal to. |
|
LE and LEQ |
Less than or equal to. |
|
NOT |
TRUE if the expression is FALSE. |
|
AND |
TRUE if both expressions are TRUE. |
|
OR |
TRUE if either or both expressions are TRUE. |