User`s manual

238 digi.com Operators
13.4 Relational Operators
Less than. This binary (relational) operator yields a Boolean value. The result is 1 if the left operand is less
than the right operand, and 0 otherwise.
if( i < j ){
body // executes if i < j
}
OK = a < b; // true when a < b
Less than or equal. This binary (relational) operator yields a boolean value. The result is 1 if the left oper-
and is less than or equal to the right operand, and 0 otherwise.
if( i <= j ){
body // executes if i <= j
}
OK = a <= b; // true when a <= b
Greater than. This binary (relational) operator yields a Boolean value. The result is 1 if the left operand is
greater than the right operand, and 0 otherwise.
if( i > j ){
body // executes if i > j
}
OK = a > b; // true when a > b
Greater than or equal. This binary (relational) operator yields a Boolean value. The result is 1 if the left
operand is greater than or equal to the right operand, and 0 otherwise.
if( i >= j ){
body // executes if i >= j
}
OK = a >= b; // true when a >= b
<
<=
>
>=