ELSE
ELSE
Provides an alternate execution sequence within an IF
statement.
SYNTAX
ELSE
PARAMETERS
None.
OPERATION
The ELSE command is used only in conjunction with the IF and
ELSEIF commands. The IF command is used with the ENDIF command,
and optionally with the ELSE command, to control the execution
of a job. The IF, ENDIF, and optional ELSE and ELSEIF commands
constitute an IF block. A logical expression is evaluated, and if
true, the IF block is executed; if false, the ELSE block (if one
exists) is executed.
This command may be issued from a session, job, a program, or in
BREAK. Pressing [Break] has no effect on this command.
EXAMPLE(S)
The following job listing illustrates the use of ELSE command.
!CONTINUE
!PASXL MYPROG,MYUSL
!IF JCW>=FATAL THEN
! TELL MAC.TECHPUBS;COMPILE FAILED
!ELSE
! TELL MAC.TECHPUBS;COMPILE COMPLETED
!ENDIF
ADDITIONAL INFORMATION
Commands: DELETEVAR, ELSEIF, ENDIF, IF, SETJCW, SHOWJCW, SETVAR,
SHOWVAR