pTAL Reference Manual (H06.03+)

Expressions
HP pTAL Reference Manual523746-005
5-25
Group Comparison
relational-operator
is one of the following operators:
All comparisons are unsigned whether you use a signed or unsigned operator.
var-2
is the identifier of a variable, with or without an index, to which var-1 is
compared. var-2 can be a simple variable, array, read-only array, simple pointer,
structure, structure item, or structure pointer.
count
is a unsigned INT arithmetic expression that defines the number of units in var-2
to compare. When count-unit is not present, the units compared are:
Signed relational operator <, =, >, <=, >=, <>
Unsigned relational operator '<', '=', '>', '<=', '>=', '<>'
var-2 Data Type Units Compared
Simple variable, array, simple pointer
(including those declared in structures)
STRING
INT
INT(32) or REAL
FIXED or REAL(64)
Bytes
Words
Doublewords
Quadruplewords
Structure Not applicable Words
Substructure Not applicable Bytes
Structure pointer STRING
INT
Bytes
Words