Expressions

An expression is a construct which is composed of operators and operands. This section provides the list of operators and their use cases.

The table below describes the list of operators and their priority.

 

Operation

Symbols

Priority

Brackets

()

1

Parameter list of the function

FUNCTION_NAME(Param1, Param2 ... )

2

Index

**

2

Singular Operator (Code)

+, -

3

Complement

NOT

3

Multiplication

*

4

Division

/

4

Modular

MOD

4

Addition

+

5

Subtraction

-

5

Comparison

<, >, <=, >=

6

Equation

=

7

Inequation

<>

7

Logical Product

&, AND

8

Exclusive-OR

XOR

9

Logical Sum

OR

10

 

The operator with higher priority will be operated first and then the operator with next priority will be operated. This procedure will be repeated until the calculation ends.
When the operators with the same priority are used, the calculation is operated from left to right.