TAL Reference Manual
Expressions
TAL Reference Manual—526371-001
4-4
Precedence of Operators
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. Here are examples:
>=
Signed greater than or equal to 5
<>
Signed not equal to 5
‘<‘
Unsigned less than 5
‘=’
Unsigned equal to 5
‘>’
Unsigned greater than 5
‘<=’
Unsigned less than or equal to 5
‘>=’
Unsigned greater than or equal to 5
‘<>’
Unsigned not equal to 5
NOT
Boolean negation 6
AND
Boolean conjunction 7
OR
Boolean disjunction 8
:=
Assignment* 9
.<...> :=
Bit deposit* 9
* Described in Section 12, Statements.
* Described in the TAL Programmer's Guide.
Table 4-1. Precedence of Operators (page 2 of 2)
Operator Operation Precedence
VST0401.vsd
(a
b)
OR
AND
c
(a
b)
+
c
*
((a b)
+
c
*
/
d)
Result
Result
Result