Relational operators compare two expressions and return a true value if the condition specified by the operator is satisfied. The relational operators use the value one (1) to indicate that the condition is true and zero to indicate that it is false.

##### Syntax

The following table shows the relational operators syntax and their meanings.

Operator | Syntax | Description
EQ .EQ. == | expression 1 EQ expression 2 expression 1 .EQ. expression 2 expression 1 == expression 2 | True if expressions are equal.
NE .NE. != | expression 1 NE expression 2 expression 1 .NE. expression 2 expression 1 != expression 2 | True if expressions are not equal.
LT .LT. < | expression 1 LT expression 2 expression 1 .LT. expression 2 expression 1 < expression 2 | True if expression1 is less than expression2.
LE .LE. <= | expression 1 LE expression 2 expression 1 .LE. expression 2 expression 1 <= expression 2 | True if expression1 is less than or equal to expression2.
GT .GT. > | expression 1 GT expression 2 expression 1 .GT. expression 2 expression 1 > expression 2 | True if expression1 is greater than expression2.
GE .GE. >= | expression 1 GE expression 2 expression 1 .GE. expression 2 expression 1 >= expression 2 | True if expression1 is greater than or equal to expression2.

##### Examples

    1 EQ 2       ; evaluates to false (0)
    1 .NE. 2     ; evaluates to true (1)
    1 LT 2       ; evaluates to true
    1 > 2        ; evaluates to false
    1 .LE. 2     ; evaluates to true
    1 >= 2       ; evaluates to false