pTAL Reference Manual (H06.03+)
Expressions
HP pTAL Reference Manual—523746-005
5-19
Relational Operators
Unsigned Relational Operators
Unsigned relational operators perform unsigned comparison of two operands and
return a true or false state.
A condition code reflects the value of the most recently evaluated root operator.
Used with no operands, signed and unsigned operators are equivalent. The result
returned by such a relational operator is:
An example of an unsigned operator follows:
IF < THEN ... ;
Table 5-15. Unsigned Relational Operators
Operator Operation Operand Type Result
'<' Unsigned less than STRING, INT, INT(32),
UNSIGNED (1-16)
True/False
'=' Unsigned equal to STRING, INT,
UNSIGNED (1-16)
True/False
'>' Unsigned greater than STRING, INT, INT(32),
UNSIGNED (1-16)
True/False
'<=' Unsigned less than or equal to STRING, INT, INT(32),
UNSIGNED (1-16)
True/False
'>=' Unsigned greater than or equal to STRING, INT, INT(32),
UNSIGNED (1-16)
True/False
'<>' Unsigned not equal to STRING, INT, INT(32),
UNSIGNED (1-16)
True/False
Relational
Operator Result Returned
< or '<' True if CCL
> or '>' True if CCG
= or '=' True if CCE
<> or '<>' True if not CCE
<= or '<=' True if CCL or CCE
>= or '>=' True if CCE or CCG










