Roulette Xtreme 2.0 - System Designer
Set Max
Identifier Index > S > Set Max

Glossary Item Box

Set Max

Format:  Set Max dest-support-action

where

Description

The Set Max identifier will read the dest-support-action identifier and set the maximum number of items in the dest-support-action to the value in the index.  If the total number of items is for the data field, then the maximum value will be assigned to the data index. Likewise, if the total number of items is for the layout field, then the maximum value will be assigned to the layout index.  

Example

We want to track roulette numbers that have appeared two times in a row and copy the numbers to a data record.  To do this, we will create a data record tracked numbers to contain those numbers.  As each number appears two times in a row, we will append the numbers to the end of the record tracked numbers.   The following example will perform this task.  

RX Script Copy Code
If Any Number has hit 2 times
begin
  Set Max to Record "tracked numbers" layout index
  Copy Last Number to Record "tracked numbers" layout
end

Results from example

Copyright © 2003 UX Software. All rights reserved