Relational operators (binary)

The binary relational operators are =, ==, !=, <>, <, <=, >, and >=.

Syntax
  Equal:                 
  <operand> =  <operand>
  
<operand> == <operand>
 
  Not equal:             
<operand> != <operand>

                       <operand> <> <operand>

  Less than:             <operand> <  <operand>

  Less than or equal:    
<operand> <= <operand>

  Greater than:          
<operand> >  <operand>
  
  Greater than or equal: 
<operand> >= <operand>
    
Description

These operators compare two operands and return 1 if the condition is true or 0 if the condition is false.

The operands can be any expression evaluating to an absolute expression.

Example

See the following listing for an example of the binary relational operators

Listing: Binary relational operators

3 >= 4      ; = 0  (FALSE)
label = 4   ; = 1  (TRUE) if label is 4, 0 or (FALSE) otherwise.

9 <  $B     ; = 1  (TRUE)