Operator Precedence Levels Table

Level

Notes

Operators

Operator Names

Highest (0)Unary--, ++, ~, ~~, ?, @, @@

Inc/Decrement, Clear, Set, Random, Symbol/Object Address

1Unary+, -, ^^, | | , |<, >|, !Positive, Negate, Square Root, Absolute, Decode, Encode, Bitwise NOT

2

 

->, <-, >>, <<, ~>, ><

Rotate Right/Left, Shift Right/Left, Shift Arithmetic Right, Reverse

3

 

&

Bitwise AND

4 | , ^Bitwise OR, Bitwise XOR

5

 

*, **, /, //

Multiply-Low, Multiply-High, Divide, Modulus

6

 

+, -

Add, Subtract

7

 

#>, <#

Limit Minimum/Maximum

8

 

<, >, <>, ==, =<, =>

Boolean: Less/Greater Than, Not Equal, Equal, Equal or Less/Greater

9

Unary

NOT

Boolean NOT

10

 

AND

Boolean AND

11

 

OR

Boolean OR

Lowest (12)

 

=, :=, all other assignments

Constant/Variable Assignment, assignment forms of Binary Operators

Unless otherwise noted, content on this site is licensed under the
Creative Commons Attribution-ShareAlike 4.0 International License.