AmigaOS 4.0 - About OS4 - Commands
|
||||||||
|
||||||||
|
ELSE is used in an IF block of a script to specify an alternative action in case the
IF condition is not true.
If the IF condition is not true, execution of the script will jump from the IF line to the line after ELSE; all intervening commands will be skipped. If the IF condition is true, the commands immediately following the IF statement are executed up to the ELSE, then execution skips to the ENDIF statement that concludes the IF block. Example Assume a script, called 'Display', contained the following block: TYPE <name> NUMBER ELSE ECHO "<name> is not in this directory" ENDIF If the work/prg2 file cannot be found in the current directory, the script will skip ahead to the 'ECHO<name> is not in this diectory' command. The message:
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. |