Roulette Xtreme 2.0 - System Designer
And
Identifier Index > A > And

Glossary Item Box

And

Format:  where-if-condition  And  support-condition  { support-condition... }

where

  • where-if-condition = either the While or If initial condition statement

  • support-condition = one or more of any valid series of supporting condition identifiers to complete a condition statement.

Description

The And identifier is used to build upon an existing condition statement that was initiated by either the While or If identifiers.  It reads the first support-condition to build a continuation condition statement and then append to the existing condition statement.  Depending on the initial support-condition one or more supporting condition identifiers may be required.  Once all required support-conditions are read and validated by the compiler, a conjunction condition block is created and based on the combined condition statements, the outcome results is either true or false.  

For an explanation on the condition block process, see While or If identifier.

Logical Process

The And identifier is known as a logical conjunction in which the outcome results is true if all of the combined condition statements are true; else the outcome is false.  

The truth table below shows the And logical operator and results for two condition statements: A and B.

A

B

A and B

False

False

False

False

True

False

True

False

False

True

True

True

When combining logical And identifiers with Or and Xor identifiers together to create a condition block, the system will create implied parentheses ( ) around the And identifier.  

The condition statement format:

if condition 1 And condition 2 Xor condition 3 And condition 4 Or condition 5 then .....

will be evaluated as

if ( condition 1 And condition 2 ) Xor (condition 3 And condition 4 ) Or ( condition 5 ) then .....

All of the And identifiers are evaluated first, then the results will be evaluated with the Or and Xor identifiers to determine the final outcome.

Example 1

We want to place bets on the roulette layout 1st Dozen and Column B.  Prior to placing bets on these layouts, we need to check:

  1. that we have enough units in our Bankroll

  2. the layout 1st Dozen has not appeared in 5 times

  3. the layout Column B has not appear in 10 times.  

If all of these three conditions evaluate as true, we will be placing a 5 unit bet on these layouts.  The following example will perform this task.

RX Script Copy Code
If  Bankroll > 0
And 1st Dozen has not hit in 5 times
And Column B has not hit in 10 times
begin
  Put 5 units on 1st Dozen
  Put 5 units on Column B
end

Copyright © 2003 UX Software. All rights reserved