RATS 10.1
RATS 10.1

Instructions /

Looping and Program Control Instructions

Home Page

← Previous Next →

The following is a list of the looping and flow control instructions available in RATS:
 

BEGIN

Starts an instruction block. A { is usually used in its place.

BRANCH

Jumps to a specific location in a program

BREAK

Breaks out of a loop

DBOX

User-defined dialog boxes

DO

Loops over an index

DOFOR

Loops over a list of items (e.g. data series)

END

Ends a loop or other compiled section, or a program

FIXED

Defines arrays inside a procedure or function

FUNCTION

Creates a user-defined function

GOTO

Jumps to a specific location in a program

HALT

Stops execution from within a compiled section

IF,ELSE

Executes one or more instructions under specified conditions

INFOBOX

Displays an updateable pop-up dialog box

LOOP

Loops indefinitely

MEDIT

Allows you to view or set array elements using a spreadsheet-style editor.

MENU,CHOICE

Create user-defined menus

MESSAGEBOX

Displays varieties of Yes/No and OK/Cancel dialog boxes

NEXT

Moves to top of loop block

QUERY

Requests input from the user

SELECT

Allows user to select items from a list in a dialog box

UNTIL

Conditional looping

USERMENU

Adds a custom menu to the menu bar, controls program flow

WHILE

Conditional looping


 


Copyright © 2025 Thomas A. Doan