Shell Commands/EndIf

From MorphOS Library

Revision as of 11:21, 3 March 2015 by JPV (talk | contribs) (Created page with "'''EndIf'''' - Terminates an IF block in a script file. No Template EndIf must be used when an If...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

< Shell Commands

EndIf' - Terminates an IF block in a script file.

No Template

EndIf must be used when an If command is used. EndIf is used in scripts at the end of an If block. If the If condition is not true or if the true-condition commands are executed and an Else is encountered, the execution of the script skips to the next EndIf command. Every If statement must be terminated by an EndIf.

NOTE: the EndIf applies to the most recent If or Else command. See also: If, Else for examples using the EndIf command.