You copied the Doc URL to your clipboard.
12.25 Relational operators
Relational operators act on two operands of the same type to produce a logical value.
The operands can be one of:
Numeric.
PC-relative.
Register-relative.
Strings.
Strings are sorted using ASCII ordering. String A
isless than string B
if it is a leading substring ofstring B
, or if the left-most character in whichthe two strings differ is less in string A
thanin string B
.
Arithmetic values are unsigned, so the value of 0>-1
is {FALSE}
.
The following table shows the relational operators:
Table 12-7 Relational operators
Operator | Alias | Usage | Explanation |
---|---|---|---|
| == |
| A equal to B |
|
| A greater than B | |
|
| A greater than or equal to B | |
|
| A less than B | |
|
| A less than or equal to B | |
| <> != |
| A not equal to B |