Roulette Xtreme 2.0 - System Designer
Equal
Identifier Index > E > Equal

Glossary Item Box

=   (equal symbol)

Format:  initial-condition-statement  source-support-condition  = dest-support-condition

where

Description

The = (equal symbol) identifier reads the source-support-condition value and performs a logical equal comparison to the value located at the dest-support-condition, meaning that the values of both condition identifiers are the same.   Depending on the source-support-condition identifier, the value can be either in the form of a numeric or layout value.  

When performing an equal comparison between the source-support-condition and dest-support-condition identifiers, if the condition outcome is evaluated as true, then program control will be passed to the body of the condition block.

Numeric types

Below are some examples when performing a comparison to a numeric value:

Layout types

Below are some examples when performing a comparison to some layout value:

Example 1

During our system, we are placing bets on several roulette layouts.  At some point, we are determining if our Bankroll has reached our maximum win goal of 115 units and if so, display a message to the user and stop the session.  The following example will perform this task.

RX Script Copy Code
If Bankroll units = 115 then
begin
  Display "You have reached your Bankroll win limit."
  Stop Session
end

Example 2

After every spin, we are capturing the last number that has appeared to a data record last number.  We then perform a comparison to the data record last number to determine the number was the individual roulette number 0 and if so, place a 10 unit bet on Red.  The following example will perform this task.

RX Script Copy Code
If Record "last number" layout = Number 0
begin
  Put 10 units on Red
end

Copyright © 2003 UX Software. All rights reserved