[AmigaOS 3.1 Command Reference\Ask]
Format: ASK <prompt>
Purpose: To obtain user input when executing a script file.
ASK is used in scripts to write the string specified by <prompt> to the
current window then wait for keyboard input. Valid keyboard responses are Y
(yes), N (no), and Return (no). If Y is pressed, ASK sets the condition flag
to 5 (WARN). If N or Return is pressed, the condition flag is set to 0. To
check the response, an IF statement can be used.
If the <prompt> contains spaces, it must be enclosed in quotation marks.
Assume a script contained the following commands:
When the ASK command is reached, "Continue?" will appear on the screen. If
Y is pressed, Yes will be displayed on the screen. If N is pressed, No will
ASK is not case sensitive, so it doesn't matter if you press
Y in the example above.
Converted from AmigaGuide to HTML by Matt Owen