Supported On | UX WS* DOS |
Option Required | RMBUX |
Keyboard Executable | Yes |
Programmable | Yes |
In an IF ... THEN ... | Yes |
QUIT terminates HP BASIC. QUIT is accepted by the HP BASIC/WS editor, but it will execute only in HP BASIC/UX and HP BASIC/DOS. The BYE statement in HP BASIC/UX is equivalent to QUIT.
QUIT
IF A$="DONE" THEN QUIT
When used within a program, this statement stops the program, and then HP BASIC terminates.
When used as a keyboard command while a program is running, an error is given. You must first stop (or pause) the program before using QUIT.
If a program is not running, then HP BASIC terminates immediately.