AmigaOS 4.0 - About OS4 - Commands
|
||||||||
|
||||||||
|
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 command must be terminated by an ENDIF command. The ENDIF command applies to the most recent IF or ELSE command. Example 1: In the following example, the ENDIF terminates the IF block: TYPE <name> NUMBER ECHO "File <name> display complete." ENDIF Example 2: In the following example, the ENDIF still terminates the IF block, but there is also an ELSE command within the block: TYPE <name> NUMBER ECHO "File <name> display complete." ELSE ECHO "<name> is not in this directory" ENDIF
Disclaimer: Amiga Auckland have prepared the above information for the use of its members based on our experiences and as such is subject to revision at any time. Amiga Auckland cannot guarantee any of the information and cannot be held accountable for any issues that may result from using it. |