> For the complete documentation index, see [llms.txt](https://docs.wem.io/platform/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.wem.io/platform/wemtipsandtricks/expressions/order-of-operators.md).

# Order of Operators

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.&#x20;

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 |
| -------------------------------------------------------------------------------------------------------------------------------------- | ------------- | ---------- |
| [IfUnknown](/platform/wemreference/operators/if-unknown.md)                                                                            | ?             | 9          |
| [Division  ](/platform/wemreference/operators/division.md)                                                                             | \\            | 8          |
| [Modulo  ](/platform/wemreference/operators/modulo.md)                                                                                 | %             | 8          |
| [Multiplication  ](/platform/wemreference/operators/multiplication.md)                                                                 | \*            | 8          |
| [Addition  ](/platform/wemreference/operators/addition.md)                                                                             | +             | 7          |
| [Subtraction  ](/platform/wemreference/operators/subtraction.md)                                                                       | -             | 7          |
| [Ancestor Of  ](/platform/wemreference/keywords/concepts/ancestor-of.md)                                                               | ancestor of   | 6          |
| [Descendant Of ](/platform/wemreference/keywords/concepts/descendant-of.md)                                                            | descendant of | 6          |
| [Child Of  ](/platform/wemreference/keywords/concepts/child-of.md)                                                                     | child of      | 6          |
| [Parent Of  ](/platform/wemreference/keywords/concepts/parent-of.md)                                                                   | parent of     | 6          |
| [Contains  ](/platform/wemreference/keywords/contains.md)                                                                              | contains      | 6          |
| [StartsWith  ](/platform/wemreference/keywords/text/starts-with.md)                                                                    | starts with   | 6          |
| [Equality  ](/platform/wemreference/operators/equality.md)                                                                             | =             | 6          |
| [GreaterThan](/platform/wemreference/operators/greater-than.md)[(OrEqual) ](/platform/wemreference/operators/greater-than-or-equal.md) | > >=          | 6          |
| [LessThan](/platform/wemreference/operators/less-than.md)[(OrEqual)](/platform/wemreference/operators/less-than-or-equal.md)           | < <=          | 6          |
| [Unequality  ](/platform/wemreference/operators/unequality.md)                                                                         | <>            | 6          |
| [In  ](/platform/wemreference/keywords/lists/in.md)                                                                                    | in            | 5          |
| [Overlaps  ](/platform/wemreference/keywords/concepts/overlaps.md)                                                                     | overlaps      | 5          |
| [LogicalAnd  ](/platform/wemreference/operators/logical-and.md)                                                                        | & and         | 4          |
| [LogicalOr ](/platform/wemreference/operators/logical-or.md)                                                                           | \| or         | 3          |
| [Where  ](/platform/wemreference/keywords/lists/where.md)                                                                              | where         | 2          |
| [Inversion  ](/platform/wemreference/operators/inversion.md)                                                                           | -             | 1          |
| [LogicalNot  ](/platform/wemreference/operators/logical-not.md)                                                                        | ! not         | 1          |
| [Of  ](/platform/wemreference/keywords/lists/of.md)                                                                                    | of            | 1          |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.wem.io/platform/wemtipsandtricks/expressions/order-of-operators.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
