Statement: Condition, Type: Supporting
Distance
Format: initial-condition-statement source-support-condition Distance integer dest-record-layout
where
-
initial-condition-statement = any valid condition statement that use these identifiers listed below:
-
source-support-condition = any one the valid series of supporting condition identifiers listed below:
-
any roulette table layout identifiers
-
integer = any numeric variable
-
dest-record-layout = destination Record Layout identifier.
Description
The Distance identifier is used to determine the distance in spins between two roulette individual numbers that have appeared. The process steps to perform this task is listed below:
-
the identifier reads the source-support-condition layout value and dest-record-layout layout value. Both layout values must contain an individual roulette numbers.
-
the identifier validates that both layout values are individual roulette numbers and if not, display an error message to the user.
-
the identifier reads the integer value.
-
a comparison is made to determine if both individual roulette numbers are within the integer spin range. The distance between both numbers include the numbers themselves.
-
if the condition outcome results of step 4 is true, program control will be passed to the body of the condition block.
Only individual roulette numbers are allowed to be used for the Distance identifier. Any other layout is invalid and will result in an error message. |
Example
We want to determine if the appearances of two roulette numbers, 3 and 21, are within 5 spins of each other and if so, place a 2 unit bet on both numbers. The following example will perform this task.
RX Script | Copy Code |
---|---|
if record "number 1" layout Distance is within 5 spins from Record "number 2" Layout begin put 2 units on record "number 1" layout put 2 units on record "number 2" layout end |