[AmigaOS 3.1 Command Reference/Quit] 
 

QUIT

Format: QUIT [<return code>] Template: RC/N Purpose: To exit from a script file with a specified return code. Path: Internal Specification: QUIT is used to stop the execution of the script upon the specified return code. The default return code is zero. It is recommended that you use the standard return code values of 5, 10 and 20. Example: ASK "Do you want to stop now?" IF WARN QUIT 5 ENDIF ECHO "OK" ECHO "The script is continuing." If you press Y at the prompt, the script will be aborted, as WARN is equal to a return code of 5. If you press N or press Return: OK The script is continuing. Will be displayed in the Shell window.


Converted from AmigaGuide to HTML by Jaruzel