Statement: Action, Type: Initial
Clear
Format: Clear dest-support-action
where
-
dest-support-action = any one of the valid destination supporting action identifiers listed below:
Description
The Clear identifier performs a clear function that removes all data from the dest-support-action. When referring to the Last Answer supporting action identifier, the Clear identifier initializes the internal variable answer to null (nothing).
Example 1
We have used the action statement Ask in our designed system to verify if the user wants to play another session. After the user selects the answer, we wanted to make sure the variable Answer is cleared. The following example will perform this task.
RX Script | ![]() |
---|---|
Clear Last Answer |
Example 2
When initiating a new session, we want to initialize certain data records prior to processing spins. The data records that we will be initializing are: pattern and total count. The following example will perform this task.
RX Script | ![]() |
---|---|
While Starting a New Session begin Clear Record "pattern" layout Clear Record "total count" data end |
Results from Example 2

Example 3
When initiating a new session, we want to quickly initialize all data records prior to processing spins. The following example will perform this task.
RX Script | ![]() |
---|---|
Clear All Records |