Priority of operators

<< Click to Display Table of Contents >>

Navigation:  »No topics above this level«

Priority of operators

mapp Services V5.16

The priority of operators from highest to lowest (operators in the same row have the same priority) is shown in the table below.

Operation

Symbol

Example

Associativity

Unary minus

-

-5

Right

Exponent

e

1e-10

Left

Bitwise negation

NOT

NOT 128

Right

Raise to power

**

2.5 ** 3

Left

Multiply

Divide

Modulo

*

/

MOD

5 * 2

5 / 2

5 MOD 2

Left

Left

Left

Add

Subtract

+

-

5 + 2

5 - 2

Left

Left

Less than

Greater than

Not greater than

Not less than

<

>

<=

>=

5 < 2

5 > 2

5 <= 2

5 >= 2

Non-associative

Non-associative

Non-associative

Non-associative

Equality

Inequality

=

<>

5 = 2

5 <> 2

Non-associative

Non-associative

Bitwise AND

AND

5 AND 2

Left

Bitwise OR

Bitwise XOR

OR

XOR

5 OR 2

5 XOR 2

Left

Left

Assignment

:=

var := 1

Non-associative

Comma

,

5 , 2

Left