ELSEIF

From ICE Enterprises
Jump to navigation Jump to search

starts macro block to be executed when prior IF conditions fail

<value1>    Left side of expression
<test>      Logical test to be performed
<value2>    Right side of expression

ELSEIF begins an alternative execution block for the macro IF statement.  It
performs the same logical tests available for the IF statement.  An example of
its use to take operating system-specific action follows: 

	if ENV.OStype eqs VMS
	  ! perform VMS actions
	elseif ENV.OStype eqs UNIX
	  ! perform UNIX actions
	else
	  SAY "Not supported for operating system ^ENV.OStype"
	endif

SEE ALSO:  IF, ELSE, ENDIF