ASK

ask.html
Format:       ASK [prompt]
Template:     PROMPT/A
Location:     Internal

ASK is used in scripts to write the string specified by [prompt] to the current window and then wait for keyboard input. Valid keyboard responses are Y (yes), N (no), and Return (no). Selecting Y sets the condition flag to 5 (WARN). Selecting N or pressing return sets the condition flag to 0. Check the response using an IF statement.

If the [prompt] contains spaces, it must be enclosed in quotation marks.


Example:


Assume a script contained the following commands:
ASK Continue?
IF WARN
ECHO Yes
ELSE
ECHO No
ENDIF