Links
Comment on page

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
Division
\
8
Modulo
%
8
*
8
Addition
+
7
-
7
ancestor of
6
descendant of
6
Child Of
child of
6
parent of
6
Contains
contains
6
starts with
6
Equality
=
6
> >=
6
< <=
6
<>
6
In
in
5
Overlaps
overlaps
5
& and
4
| or
3
Where
where
2
-
1
! not
1
Of
of
1