pTAL Reference Manual (G06.24+, H06.09+, J06.03+)

Table 23 Precedence of Operators (continued)
PrecedenceOperationOperator
Signed division/
Unsigned multiplication'*'
Unsigned division'/'
Unsigned remainder'\'
4Signed addition+
Signed subtraction-
Unsigned addition'+'
Unsigned subtraction'-'
Bitwise logical ORLOR
Bitwise logical ANDLAND
Bitwise exclusive ORXOR
5Signed less than<
Signed equal to=
Signed greater than>
Signed less than or equal to<=
Signed greater than or equal to>=
Signed not equal to<>
Unsigned less than'<'
Unsigned equal to'='
Unsigned greater than'>'
Unsigned less than or equal to'<='
Unsigned greater than or equal to'>='
Unsigned not equal to'<>'
6NegationNOT
7ConjunctionAND
8DisjunctionOR
9 (lowest)Assignment:=
Bit deposit<...> :=
You can use parentheses to override the precedence of operators. You can nest the parenthesized
operations. The compiler evaluates nested parenthesized operations outward starting with the
innermost level.
Figure 1 Parentheses’ Effect on Operator Precedence
Operator Precedence 71