ABORT

From Smart Box
Revision as of 18:54, 6 October 2023 by Benryves (talk | contribs) (→‎Associated keyword)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Syntax[edit]

ABORT

Description[edit]

This command interrupts a program which is running and prints the name of the procedure which was executing at the time. This can be used to finish a program when a certain condition occurs. This differs from the END command in that it ends all currently running procedures and returns to command mode. END will return to the calling procedure.

Example[edit]

PRINT "Press S to stop!"
IF INKEY$="S" THEN ABORT

Associated keywords[edit]