Previous Topic Next topic Print topic


IF

If the specified expression evaluates to TRUE, then the following statement is executed. If the expression evaluates to FALSE, then the following statement is skipped.

Syntax:

      *----------------------------------------------------------------
      *    IF OPERANDS
      *   // IF 
      *      var1 + operator val
      *      ( {AND/OR}
      *      var2 + operator val)
      *     THEN
      *----------------------------------------------------------------

Where:

var
A $RC, $MRC or a parameter name.
operator
EQ or =, NE or ^=, GT or >, LT or <, GR or >+, LE or <+
val
Number to be compared to return code $RC or $MRC, or a character string to be compared to parameter name.
Previous Topic Next topic Print topic