skip to main content

Procedure Division : Conditional expressions : Relation conditions

Relation conditions
A relation condition specifies the comparison of two operands. The relational operator that joins the two operands specifies the type of comparison. The relation condition is true if the specified relation exists between the two operands; the relation condition is false if the specified relation does not exist.
Syntax
operand-1  [IS]  [NOT]  { GREATER THAN               }                operand-2
                        { LESS THAN                  }
                        { EQUAL TO                   }
                        { >                          }
                        { <                          }
                        { <>                         }
                        { =                          }
                        { >=                         }
                        { <=                         }
                        { LIKE [ TRIMMED { LEFT  } ] }
This additional syntax is supported when compiling with -cm:.
operand-1 { EQUALS        }        operand-2
          { EXCEEDS       }
operand-1 and operand-2 may be either an arithmetic expression, a data name, or a literal.
When the LIKE operator is used, operand-2 identifies a regular expression.

Copyright (c) 2017 Veryant
Contact us
Please share your comments on this manual or on any
Veryant product documentation with the email button at the top left