Statement: Condition, Type: Supporting
Pattern match
Format: initial-condition-statement source-support-condition Pattern match 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:
-
dest-record-layout = destination Record Layout identifier.
Description
The Pattern match identifier is used to determine if there is a pattern between the source-support-condition value and the dest-record-layout. The source-support-condition usually will contain a list of layout values that will perform a pattern match to a list of layout values located in the dest-record-layout. The process steps to perform this task is listed below:
-
the identifier reads the source-support-condition value list and dest-record-layout value list.
-
a comparison is made to determine if the value list in source-support-condition has an exact pattern match with the value list from the dest-record-layout.
-
if the condition outcome results of step 2 is true, program control will be passed to the body of the condition block.
What is a pattern?
A pattern is a list of layout values that have appeared and is stored in a data record. For example: Red, Red, Black, Red, Red, Black. This pattern is made up of red, black layouts which is from the last 6 numbers that have appeared.
Example
We are tracking the last 3 red-black layout pattern into a data record patterns. We want to place a 5 unit bet on Red only when the layout of the last three numbers form this pattern: Black, Black, Red. The following example will perform this task.
RX Script | Copy Code |
---|---|
Track last Red-Black patterns for 3 spins to Record "patterns" layout If List [Black, Black, Red] has a pattern match to Record "patterns" layout begin Put 5 units on Red end |