
80
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:
Relational Operators Meanings Examples
=
<> or ><
<
>
<= or =<
>= or =>
Equal to
Not equal to
Less than
Greater than
Less than or equal to
Greater than or equal to
A=B
A<>B
A<B
A>B
A<=B
A>=B
If an expression contains both arithmetic and relational operators, the arithmetic operator has
higher precedence than the relational operator.
Comentarios a estos manuales