Roulette Xtreme 2.0 - System Designer
Record Data Count (Condition)
Identifier Index > R > Record Data Count (Condition)

Glossary Item Box

Record Data Count

Format:  initial-condition-statement  Record  "record-name"  Data Count  { support-condition  dest-support-condition }

where

Description

The Record Data Count identifier reads the record-name and creates a data record if it does not already exist. When referring to the Record Data Count, you always identify the data record by its record-name which is inserted between the Record and Data Count identifiers; i.e. Record "record-name" Data Count.  This instructs the designed system that you are referencing the total number of items in the data field of the record.

When using the data record in a condition statement, the Record Data Count identifier returns the total number of items in the data field.  This value is then compared against another supporting condition identifier to produce a logical true or false result.  When the outcome of the condition is evaluated as true the program control is passed to the body of the condition block.

For more information, see Data Records.

Example

We have created a bet progression sequence of: 1,2,4,8,16,32,64 to a data record progression when initializing a new session.  During our system process, we are placing a bet on the roulette layout Black.  Every time the layout Black has lost, we increase the bet by using the Martingale progression.  This is accomplished by incrementing the data index by 1 to point to the next item in the data record.  If our next progression bet exceeds our maximum number of items, we want to reset the progression back to 1.  To do this, we will compare the data index with the Record Data Count identifier which contains the total number of items in the list.  If the data index exceeds the Record Data Count, reset the data index to 1.  The following example will perform this task.

RX Script Copy Code
If the Record "progression" data index > the Record "progression" data count
begin
  Put 1 on Record "progression" data index
end

Copyright © 2003 UX Software. All rights reserved