/ELSEIF Condition-Expression

The /ELSEIF compiler directive is used to test a condition expression within an /IF or /ELSEIF group.

Start of change/ELSEIF must be followed by at least one space, and then the condition expression must be specified on the same line. Following the condition expression, the remainder of the line must be blank.End of change

Start of changeSee Compiler Directives for information on the columns available for directives.End of change

Start of change/ELSEIF can be specified in any free-form statement other than a free-form calculation statement. See Conditional Directives Within a Free-Form Statement.End of change

If the previous /IF or /ELSEIF was not satisfied, and the condition expression is true, then source lines following the /ELSEIF directive are selected to be read. Otherwise, lines are excluded until the next /ELSEIF, /ELSE or /ENDIF in the same /IF group is encountered.