Statement: Condition, Type: Supporting
Each Spin
Format: initial-condition-statement Each Spin
where
Description
The Each Spin identifier is used to test the condition if a spin has been generated either manually or automatically. When a spin is initiated, the outcome of the condition is evaluated as true the program control is passed to the body of the condition block.
Example
As we process each spin, we want our system to place bets on the roulette layout Odd and 3rd Dozen. The condition statement While on Each Spin will determine if this is a spin process or new session. A spin process would evaluate the condition statement as true and the program control is passed to the body where two action statements are executed to place bets. The following example will perform this task.
RX Script | Copy Code |
---|---|
While on Each Spin begin Put 5 units on Odd Put 10 units on 3rd Dozen end |