ELSE

From ICE Enterprises
Revision as of 18:04, 27 April 2020 by ConvertBot (talk | contribs) (starts macro block to be executed when IF/ELSEIF conditions fail)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

starts macro block to be executed when IF/ELSEIF conditions fail

ELSE begins an alternative execution block for the macro IF statement. An
example of its use to take operating system-specific action:

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

SEE ALSO:  IF, ELSEIF, ENDIF