ENDIF

Generated from C.60.01 /SYS/PUB/CICAT last modified on Thu Jan 11 09:18:52 2001

Back to Main Index


ENDIF


     Terminates an IF block.

SYNTAX


     ENDIF


PARAMETERS


     None.


OPERATION


     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
     command.


EXAMPLE(S)


The following are examples of an IF command with its required ENDIF:

IF
     ...
     ...
     ...

ENDIF


IF
     ELSEIF
     ...
     ...

ENDIF


ADDITIONAL INFORMATION


Commands:   IF, ELSE, ELSEIF

Back to Main Index