Purpose: Pauses script execution and waits for a user response.
Format: PAUSE textstring
Notes: The PAUSE statement will display a message box and suspend program execution until the user clicks on the OK button. Clicking on the CANCEL button will allow the user to exit the script. textstring may consist of combinations of text and variables to be printed in the message box. Text must be enclosed in quotes and must be separated from variables by spaces.
print " This script displays
the ascending powers"
print " of 2 every time you select OK until "
print " you select CANCEL"
accum = 1
accum = accum * 2
pause "The next power of 2 is: " accum
See Also: ASK