Statement: Condition, Type: Supporting
Any Flag
Format: initial-condition-statement Any Flag boolean-text
where
Description
The Any Flag identifier instructs the designed system that you are referencing the state field of any data flags that have been created.
When using the Any Flag identifier in a condition statement, the system will read the state value from each of the data flags, perform a comparison to the outcome of the boolean-text to produce a logical true or false result. If any of those data flags outcome is evaluated as true the program control is passed to the body of the condition block.
For more information, see Data Flags, Set Flag.
Example
We want to determine if any of our data flags contain a state value of true so we can place two layouts bets. The following example will perform this task.
RX Script | Copy Code |
---|---|
If Any Flag is True begin Put 5 units on Red Put 15 units on Column B end |