Operator Precedence [ System Debug Reference Manual ] MPE/iX 5.0 Documentation
System Debug Reference Manual
Operator Precedence
The precedence ranking of an operator determines the order in which it is
evaluated in an expression. The levels of ranking are:
Precedence Operators
---------------------------------------------------------------------------------------
highest [ ]
. NOT, BNOT
. <<, >>, BAND, BOR
. *, /, MOD, AND
. +, -, OR
lowest <, <=, =, >, >=, <>
Operators of highest precedence are evaluated first. For example, since
* ranks above +, the following expressions are evaluated identically:
(x + y * z) and (x + (y * z))
When operators in a sequence have equal precedence, evaluation proceeds
from left to right. For example, each of the following expressions are
evaluated identically:
(x + y + z) and ((x + y) + z)
MPE/iX 5.0 Documentation