pTAL Reference Manual (H06.03+)
Expressions
HP pTAL Reference Manual—523746-005
5-14
Constant Expressions
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.
For more information, see Section 6, LITERALs and DEFINEs.
EXTADDR relational
EXTADDR
INT EXTADDR b1, b2;
INT i;
IF b1 < b2 THEN ...;
i := b1 < b2;
relational must be a signed relational
operation (<, =, >, <=, <>, >=).
atype relational
CONSTANT
INT BADDR b1;
INT i;
IF b1 '>' 100 THEN ...;
i := b1 '<>' nil;
relational must be an unsigned
relational operation ('<', '=', '>', '<=', '<>',
'>=') or signed equal or not equal (=, <>).
EXTADDR relational
CONSTANT
INT EXTADDR b1;
INT i;
IF b1 < 0D THEN ...;
i := b1 < 65535;
relational must be a signed relational
operation (<, =, >, <=, <>, >=).
Example 5-2. Constant Expressions
255
8 * 5 + 45 / 2
Table 5-10. Valid Address Expressions (page 2 of 2)
Template Result Type Examples
* atype represents any address type except PROCADDR or EXTADDR.










