home *** CD-ROM | disk | FTP | other *** search
- QUIT
-
- Exits from a script file with a specified return code.
-
- Format
-
- QUIT [<return code>]
-
- Template
-
- RC/N
-
- Location
-
- Internal
-
- QUIT stops the execution of the script at the specified return code. The
- default return code is zero. We recommend 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 is aborted, since WARN is equal to a
- return code of 5. If you press N or press Return:
-
- OK
- The script is continuing.
-
- Is displayed in the Shell window.
-