Determine the order of execution

The operations written into an expression perform in a prescribed order.
  • Operations of equal order perform from left to right.
  • If an expression contains multiple operators or functions, group the conditions in parenthesis "( )". This ensures the correct order of execution, and makes it easier to read the expression.
    Order
    Operation
    1
    ()
    2
    function (...)
    3
    **
    4
    - (negate)
    5
    NOT
    6
    *,/,MOD
    7
    +,- (subtract)
    8
    <,<=,>,>=
    9
    =,<>
    10
    &,AND
    11
    XOR
    12
    OR
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.