Statement: Action, Type: Initial
Set Flag
Format: Set Flag "flag-name" boolean-text
where
-
flag-name = the text name of the data flag enclosed in quotation marks " " that will used to reference this record.
-
boolean-text = either a constant True or False text word.
-
True: converts the text word to a boolean true indicator
-
False: converts the text word to a boolean false indicator
-
Description
The Set Flag identifier reads the boolean-text variable, converts the variable to an actual boolean value, and assigns the value of the data flag identified by flag-name. If the flag flag-name does not exist, the system will create the flag flag-name and initialize the value to boolean-text.
Example
We have created a system that contains three data flags: Ready to Bet, Win! and Lost!. Initially, we will set the value of flag Ready to Bet to true and the value of flags Win! and Lost! to false. The following example will perform this task.
RX Script | Copy Code |
---|---|
Set Flag "Ready to Bet" to True Set Flag "Win!" to False Set Flag "Lost!" to False |