Home Page The Club Computers News Links Glossary EYAWTK
Before Amiga Background ICS OCS ECS AGA ??? PPC
U-Boot SLB Linux Amiga OS Dual Boot Motherboards Peripherals Other
Initialisation Installation OS4 Updates About OS4 File Systems Networking Printing Other
Introduction File System Workbench Preferences Commands Error Msgs Miscellaneous

AmigaOS 4.0 - About OS4 - Commands

QUIT Internal
Purpose: Exits from a script file with a specified return code.
Format: QUIT <return code>
Template: RC/N
Path: Internal
QUIT stops the execution of a script with the specified return code. The default return code is zero. We recommend 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 - The script is continuing."
If you press Y at the prompt, the script is aborted, since WARN is equal to a return code of 5. If you press N, or just the Return Key, the following message is displayed: OK - The script is continuing.


Return to Commands Selection

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.


Copyright 2006 Amiga Auckland Inc. All rights reserved.
Revised: February 9, 2006.