TAL Programmer's Guide

Precedence of Operators
Using Expressions
5–14 096254 Tandem Computers Incorporated
Table 5-8. Precedence of Operators (Page 2 of 2)
Operator Operation Precedence
'<' 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 the TAL Reference Manual.
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:
414
c * (a + b)
Result
c * ((a + b) / d)
Result
(a OR b) AND c
Result