Statement: Action, Type: Supporting
Record Layout Index
Format: initial-action-statement Record "record-name" Layout Index { dest-support-action }
where
-
initial-action-statement = any valid action statement that use these identifiers listed below:
-
record-name = the text name of the data record enclosed in quotation marks " " that will used to reference this record.
-
dest-support-action = if applicable, any one of the valid destination supporting action identifiers listed below:
Description
The Record Layout Index identifier reads the record-name and creates a data record if it does not already exist. When referring to the Record Layout Index, you always identify the data record by its record-name which is inserted between the Record and Layout Index identifiers; i.e. Record "record-name" Layout Index. This instructs the designed system that you are referencing the layout index field of the record.
When using the data record in an action statement, the layout index value of the Record Layout Index is used to reference a list of roulette layouts within the layout field that are separated by a comma , symbol; i.e. Red, Black, Black, Red or roulette numbers 21, 13, 4, 0, 18. The layout index acts as a pointer to the location of each item in the list. One advantage of the Record Layout Index is referencing a list of roulette numbers that have appeared in the last n times and use those numbers to determine how many hits occurred for each roulette number.
Assuming that the last 5 numbers that have appeared are 21, 13, 4, 0, 18 and we wanted to place a 5 unit bet on roulette number 4. We would set the layout index value to 3 and then use the Record Layout Index to reference the 3rd position of the layout list to place a 5 unit on the roulette number 4.
For more information, see Data Records.
Example
We want to track the last 5 roulette numbers that have appeared and place bets on those numbers. After each spin, we cycle through the data record last 5 numbers using the Record Layout Index to review each roulette number and determine the status of that number. If the status of the number has won, we increase the bet by 1 unit. If the status of the number is a loss, we keep same unit bet. The following example will perform this task.
RX Script | Copy Code |
---|---|
Loop Until the Record "last 5 numbers" layout index > the Record "last 5 numbers" layout count begin if Record "last 5 numbers" layout has won each time begin Add 1 unit to Record "last 5 numbers" layout end Add 1 unit to Record "last 5 numbers" layout index end |