Statement: Condition, Type: Supporting
All True Flags
Format: initial-condition-statement All True Flags support-condition integer
where
-
initial-condition-statement = any valid condition statement that use these identifiers listed below
-
support-condition = any one of the valid series of supporting condition identifiers listed below:
-
integer = any numeric variable.
Description
The All True Flags identifier instructs the designed system that you are referencing the state field of all data flags that have been created.
When using the All True Flags identifier in a condition statement, the system will count the number of data flags that have a true state value and compare the total count against another supporting condition identifier to produce a logical true or false result. When the 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 make bets on two layouts only if there are three data flags that contain a state value of true. The following example will perform this task.
RX Script | Copy Code |
---|---|
If All True Flags count = 3 begin Put 5 units on Red Put 15 units on Column B end |