Roulette Xtreme 2.0 - System Designer
Return
Identifier Index > R > Return

Glossary Item Box

Return

Format:  Return

Description

The Return identifier will cause program control to be passed back to the original calling point.  The Return identifier is used within a method subroutine to cause program control flow to leave the subroutine prior to reaching the end of the control block.  A valid use of the Return identifier is exiting a subroutine method based upon the actions of a condition statement.  

Example

We have a method subroutine make bets that will process action statements to place bets on the roulette layout 1st Dozen and Column B.  However, prior to placing bets, we need to verify that the system is ready to place those bets based on the condition outcome of the data flag ready to bet.  If the condition outcome of the data flag ready to bet is false, then the system will return to the original calling point and not place any bets on those layouts.  The following example will perform this task.  

RX Script Copy Code
method "make bets"
  If Flag "ready to bet" is False
  begin
    Return
  end

  Put 5 units on 1st Dozen
  Put 5 units on Column B
end

Copyright © 2003 UX Software. All rights reserved