home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 21 / AACD 21.iso / AACD / Utilities / Help / locale / help / english / sys / quit.doc < prev    next >
Encoding:
Text File  |  2000-10-06  |  601 b   |  37 lines

  1. QUIT
  2.  
  3. Exits from a script file with a specified return code.
  4.  
  5. Format
  6.  
  7. QUIT [<return code>]
  8.  
  9. Template
  10.  
  11. RC/N
  12.  
  13. Location
  14.  
  15. Internal
  16.  
  17. QUIT stops the execution of the script at the specified return code. The
  18. default return code is zero. We recommend you use the standard return code
  19. values of 5, 10, and 20.
  20.  
  21. Example:
  22.  
  23. ASK "Do you want to stop now?"
  24. IF WARN
  25. QUIT 5
  26. ENDIF
  27. ECHO "OK"
  28. ECHO "The script is continuing."
  29.  
  30. If you press Y at the prompt, the script is aborted, since WARN is equal to a
  31. return code of 5. If you press N or press Return:
  32.  
  33. OK
  34. The script is continuing.
  35.  
  36. Is displayed in the Shell window.
  37.