Specifications
Chapter 6. Expressions and Operators
81
6.3.2 Relational Operators
A relational operator compares two values. Depending upon whether the comparison is true or
false, the operator returns true (–1) or false (0).
With the operation result, you can control the program flow.
The relational operators include the following:
If an expression contains both arithmetic and relational operators, the arithmetic operator has
higher precedence than the relational operator.
Relational Operators Meanings Examples
=
Equal to
A = B
<> or ><
Not equal to
A <> B
<
Less than
A < B
>
Greater than
A > B
<=
or =<
Less than or equal to
A <= B
>=
or =>
Greater than or equal to
A >= B