Advanced features / Program execution |
The EXIT PROGRAM instruction terminates the execution of the program.
EXIT PROGRAM [ exit-code ]
Use the EXIT PROGRAM instruction to stop the execution of the current program instance.
exit-code must be zero by default for normal, successful program termination.
exit-code is converted into a positive integer between 0 and 255 (8 bits).
MAIN DISPLAY "Emergency exit." EXIT PROGRAM -1 DISPLAY "This will never be displayed." END MAIN