Skip to main content

Order of evaluation

The order of evaluation proceeds according to the precedence of the operators in the expression. The following table lists the precedence of the operators, with the highest priority at the top of the list.

Precedence Level

Operators

1

[ ]

2

! ~

3

* ∕ %

4

+ -

5

isin

6

≤ ≥ < >

7

== ! =

8

&

9

|

10

&&

11

||

12

parentheses

Evaluation of the expression moves left to right and stops at the earliest possible pass/fail decision; unnecessary conditions are not evaluated.