---
title: "Operator precedence"
canonical: "https://docs.cuesystem.com/space/CVCHELP/522682864/Operator%20precedence"
format: markdown
---
> Macro (toc)

---

An operator with higher precedence is evaluated before an operator with less precedence. 

The parenthesis can explicitly change the precedence: 

```visualbasic
10 * 3 + 2 = 32 
10 * (3 + 2) = 50
```

> ℹ️ Use **parentheses **to increase the readability of the program. Use them if you are not sure precedence of your code as well.

|  |  |  |  |
| --- | --- | --- | --- |
| Name | Description | Type | Precedence |
| AddressOf | reference to variable | unary | 23 |
| RaiseEvent | raises an event | unary | 23 |
| StartProcess | starts a process | unary | 23 |
| StopProcess | stops a process | unary | 23 |
| VariableOf | dereference to variable | unary | 23 |
| ^ | power | binary | 22 |
| + | unary plus | unary | 21 |
| - | unary minus | unary | 21 |
| - | multiplying | binary | 20 |
| / | dividing | binary | 20 |
| Mod | remainder | binary | 18 |
| + | plus | binary | 17 |
| - | minus | binary | 17 |
| << | bitwise shift left | binary | 16 |
| >> | bitwise shift right | binary | 16 |
| = | equal to | binary | 15 |
| <> | not equal to | binary | 15 |
| < | less than | binary | 15 |
| <= | less than or equal to | binary | 15 |
| > | grater than | binary | 15 |
| >= | grater than or equal to | binary | 15 |
| Not | not | unary | 14 |
| And | and | binary | 13 |
| BitAnd | bitwise and | binary | 13 |
| Or | or | binary | 12 |
| BitOr | bitwise or | binary | 12 |
| Xor | xor | binary | 11 |
| BitXor | bitwise xor | binary | 11 |
| := | assignment | binary | 10 |
| += | compound assignment | binary | 10 |
| -= | compound assignment | binary | 10 |
| /= | compound assignment | binary | 10 |
| \= | compound assignment | binary | 10 |
| Mod= | compound assignment | binary | 10 |
| *= | compound assignment | binary | 10 |
| ^= | compound assignment | binary | 10 |
| <<= | compound assignment | binary | 10 |
| >>= | compound assignment | binary | 10 |
| And= | compound assignment | binary | 10 |
| BitAnd= | compound assignment | binary | 10 |
| Or= | compound assignment | binary | 10 |
| BitOr= | compound assignment | binary | 10 |
| Xor= | compound assignment | binary | 10 |
| BitXor= | compound assignment | binary | 10 |

Note: Precedence 1 to 9 are reserved for the future.