Order of Operators

Operators order of precedent

In expressions you use operators to perform operations or calculations with your data. In what order these operations are performed is depending on the operator precedence or priority. WEM also uses the order of operators to evaluate expressions.

Properly using the priority of your operators can reduce the amount of brackets needed in an expression and make them much more readable. Below you will find a list with the priority of every operator, from highest precedent (calculated first) to lowest precedent (calculated last). Some keywords also have a priority in the right context you can also find those in this list.

Operator Symbol Prioriteit

?

9

\

8

%

8

*

8

+

7

-

7

ancestor of

6

descendant of

6

child of

6

parent of

6

contains

6

starts with

6

=

6

> >=

6

< <=

6

<>

6

in

5

overlaps

5

& and

4

| or

3

where

2

-

1

! not

1

of

1

Last updated