Precedence
Operator precedence describes the order in which operations are performed in an arithmetic expression.
The numbers are called operands, and the operation is defined by the operator.
| Priority | Operator | Description | Example |
|---|---|---|---|
| 0 | >> << |> | Connection Operators | Test1 > 0 >> |
| 1 | () | Expression grouping | (3 + 4) |
| 2 | [] | Attribute Table field | Attribute[columnA] |
| 2 | () | Function call | Function() |
| 2 | {} | Keywords | {PreviousCase}:test1 |
| 2 | ; | Attributes definition separator | Function(par1; par2) |
| 2 | ! | Unit of measure operator | |
| 3 | * | Multiplication | 10 * 5 |
| 3 | / | Division | 10 / 5 |
| 3 | @ | Division Remainder | 10 % 5 |
| 4 | + | Addition | 10 + 5 |
| 4 | - | Subtraction | 10 - 5 |
| 5 | < | Less than | x < y |
| 5 | <= =< | Less than or equal | x <= y |
| 5 | > | Greater than | x > y |
| 5 | >= => | Greater than or equal | x >= y |
| 5 | = | Equal | x = y |
| 5 | <> | Not Equal | x <> y |
| 6 | AND | Logical AND | |
| 6 | OR | Logical OR | |
| 6 | XOR | Logical XOR |