Roulette Xtreme 2.0 - System Designer
Distance
Identifier Index > D > Distance

Glossary Item Box

Distance

Format:  initial-condition-statement  source-support-condition  Distance  integer  dest-record-layout

where

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:

  1. the identifier reads the source-support-condition layout value and dest-record-layout layout value.  Both layout values must contain an individual roulette numbers.

  2. the identifier validates that both layout values are individual roulette numbers and if not, display an error message to the user.

  3. the identifier reads the integer value.

  4. 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.

  5. 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

Results from example

Copyright © 2003 UX Software. All rights reserved