HP 3000 Manuals

ELSE [ MPE/iX Commands Reference Manual Volume I ] MPE/iX 5.0 Documentation


MPE/iX Commands Reference Manual Volume I

ELSE 

Provides an alternate execution sequence within an IF statement.  (Native
Mode)

Syntax 

ELSE

Parameters 

None.

Operation Notes 

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

Use 

This command may be issued from a session, job, program, or in BREAK.
Pressing Break has no effect on this command.

Example 

The following job listing illustrates using the ELSE command:

     !CONTINUE
     !PASXL MYPROG,MYUSL
     !IF JCW>=FATAL THEN
     !   TELL USER.TECHPUBS;COMPILE FAILED
     !ELSEIF JCW>=WARN THEN
     !   TELL USER.TECHPUBS;COMPILE COMPLETED WITH WARNINGS
     !ELSE
     !   TELL USER.TECHPUBS;COMPILE COMPLETE WITH NO WARNINGS
     !ENDIF

Related Information 

Commands      DELETEVAR, ELSEIF, ENDIF, IF, SETJCW, SETVAR, SHOWJCW,
              SHOWVAR

Manuals       None



MPE/iX 5.0 Documentation