VTL-ML - Evaluation order of the Operators
Within a single expression of the manipulation language, the operators are applied in sequence, according to the precedence order. Operators with the same precedence level are applied according to the default associativity rule. Precedence and associativity orders are reported in the following table.
Evaluation order |
Operator |
Description |
Default as sociativity rule |
---|---|---|---|
I |
( ) |
Parentheses. To alter the default order. |
None |
II |
VTL operators with functional syntax |
VTL operators with functional syntax |
Left-to-right |
III |
Clause Membership |
Clause Membership |
Left-to-right |
IV |
unary plus unary minus not |
Unary minus Unary plus Logical negation |
None |
V |
* / |
Multiplication Division |
Left-to-right |
VI |
+ - || |
Addition Subtraction String concatenation |
Left-to-right |
VII |
> >= < <= = <> in not_in |
Greater than Less than Equal-to Not-equal-to In a value list Not in a value list |
Left-to-right |
VIII |
and |
Logical AND |
Left-to-right |
IX |
or xor |
Logical OR Logical XOR |
Left-to-right |
X |
if-then-else case |
Conditional (if-then-else/case) |
None |