I l @ ve RuBoard |
Each operator compares the value at its left to the value at its right.
< | Less than |
<= | Less than or equal to |
== | Equal to |
>= | Greater than or equal to |
> | Greater than |
!= | Unequal to |
A simple relational expression consists of a relational operator with an operand on each side. If the relation is true, the relational expression has the value 1 . If the relation is false, the relational expression has the value .
5 > 2 is true and has the value 1 .
(2 + a) == a is false and has the value .
I l @ ve RuBoard |