Statement: Action, Type: Supporting
Last Answer
Format: clear-action-statement Last Answer
where
-
clear-action-statement = the valid action statement, Clear
Description
The Last Answer is a supporting action identifier that references the internal variable answer which gets assigned by the Ask action statement with a yes or no value. The Clear action statement will clear the internal variable answer when referencing the Last Answer identifier.
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. If the user wants to continue and play another session, we will clear the internal variable answer prior to continuing with another 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 Clear Last Answer |