TAL Reference Manual

Expressions
TAL Reference Manual526371-001
4-15
Relational Operators
Unsigned Relational Operators
Unsigned relational operators perform unsigned comparison of two operands and
return a true or false state. Table 4-11
describes unsigned relational operators,
operand data types, and the results yielded by such operators.
Effect on Hardware Indicators
Signed and unsigned operators set the condition code indicator as described in Testing
Hardware Indicators.
Table 4-10. Signed Relational Operators and Result Yielded
Operator Meaning Operand Type Result
<
Signed less than Any data type True/False
=
Signed equal to Any data type True/False
>
Signed greater than Any data type True/False
<=
Signed less than or equal
to
Any data type True/False
>=
Signed greater than or
equal to
Any data type True/False
<>
Signed not equal to Any data type True/False
* The data type of the operands must match except as noted in Data Types of Expressions on
page 4-2.
Table 4-11. Unsigned Relational Operators and Result Yielded
Operator Meaning Operand Type Result
‘<‘
Unsigned less than STRING, INT,
UNSIGNED (1–16)
True/False
‘=’
Unsigned equal to STRING, INT,
UNSIGNED (1–16)
True/False
‘>’
Unsigned greater than STRING, INT,
UNSIGNED (1–16)
True/False
‘<=’
Unsigned less than or
equal to
STRING, INT,
UNSIGNED (1–16)
True/False
‘>=’
Unsigned greater than or
equal to
STRING, INT,
UNSIGNED (1–16)
True/False
‘<>’
Unsigned not equal to STRING, INT,
UNSIGNED (1–16)
True/False