pTAL Reference Manual (G06.24+, H06.09+, J06.03+)
Table 32 Valid Address Expressions (continued)
ExamplesResult TypeTemplate
IF 20d < e32a THEN ...
IF 0D <> e64a THEN ...
* atype represents any address type except PROCADDR or EXTADDR.
** 64-bit addressing functionality added to the EpTAL compiler starting with SPR T0561H01^AAP. For more information,
see Appendix E, “64-bit Addressing Functionality” (page 531).
Constant Expressions
A constant expression is an arithmetic expression that contains only constants, LITERALs, or DEFINEs
as operands.
You can use a constant expression anywhere a single constant is allowed.
Example 12 Constant Expressions
255
8 * 5 + 45 / 2
For more information, see Chapter 6 (page 97).
Conditional Expressions
A conditional expression is a sequence of conditions and relational operators that establishes the
relationship between values. You can use conditional expressions to direct program flow.
NOT
is an operator that produces a true state if condition has the value false:
Value of NOT aValue of a
FalseTrue
TrueFalse
condition
is an expression whose value is either true or false.
AND
is an operator that produces a true state if both its operands have the value true:
Value of a AND bValue of bValue of a
TrueTrueTrue
FalseFalseTrue
FalseTrueFalse
FalseFalseFalse
Constant Expressions 81