ELSEIF

From ICE Enterprises

Revision as of 18:05, 27 April 2020 by ConvertBot (talk | contribs) (starts macro block to be executed when prior IF conditions fail)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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