HALT Instruction |
HALT message
HALT stops execution of the program. You must use HALT if you want to terminate execution from within a compiled section.
Parameters
|
message |
(optional) You can provide a string of up to 255 characters. RATS will print the message Normal Completion. Halt at message
in the summary at the end of the program output if this HALT is executed. This can be helpful if you use multiple HALT’s in a program. |
Example
loop
menu "What Next?"
choice "Enter Data"
source indata.src
choice "Do Forecasts"
source forecast.src
choice "Quit”
halt
end menu
end loop
loops until the user chooses “Quit” from the menu.
Copyright © 2026 Thomas A. Doan