Terminates an IF block.
The ENDIF command is used to terminate an IF block. The
IF command, the optional ELSE and ELSEIF commands, and the ENDIF
command constitute an IF block. They are used to control the
execution of a job. A logical expression is evaluated, and
if true, the IF block is executed; if false, the ELSE block
(if one exists) is executed. Refer to the ELSE command
for an illustration of ENDIF.
This command may be issued from a session, job, or in BREAK,
or from a program. Pressing [Break] has no effect on this
The following are examples of an IF command with its required ENDIF:
Commands: IF, ELSE, ELSEIF