Statement: Action, Type: Initial
Ask
Format: Ask "text-string"
where
-
text-string = any text information that is enclosed in quotation marks " "
Description
The Ask identifier opens a dialog box and displays the text-string information. The dialog box contains two buttons: Yes and No
-
Yes button: When this button is clicked, an internal variable answer will contain the value Yes.
-
No button : When this button is clicked, an internal variable answer will contain the value No.
The internal variable answer is used with the supporting condition identifier: Last Answer. The internal variable will be cleared when a new session has been initiated.
Example
When we reached the end of our session, we are presenting to the user the opportunity to play another session. The results from the dialog box will be stored in the internal variable answer. Later we use a condition statement along with the supporting condition identifier Last Answer to determine if the user wants to quit and stop the session. The following example will perform this task.
RX Script | Copy Code |
---|---|
Ask "Do want to play another session?" if the Last Answer is No then begin Stop Session end |