Operator precedence

The order of precedence controls which operator is evaluated first in an expression. Operators on the same line have the same precedence.

Operator precedence, highest to lowest

Unary +, Unary -
^
*, /
\
MOD
+, -
&
EQ, NEQ, LT, LTE, GT, GTE, CONTAINS, DOES NOT CONTAIN
NOT
AND
OR
XOR
EQV
IMP

To enforce a specific non-standard order of evaluation, you must parenthesize expressions. For example:

Parenthesized expressions can be arbitrarily nested. When in doubt about the order in which operators in an expression will be evaluated, always use parentheses.