QBasic 1.1: END Statement

Syntax

END [{DEF | FUNCTION | IF | SELECT | SUB | TYPE}]

Description / Parameter(s)

DEF Ends a multiline DEF FN function definition.
FUNCTION Ends a FUNCTION procedure definition.
IF Ends a block IF...THEN...ELSE statement.
SELECT Ends a SELECT CASE block.
SUB Ends a SUB procedure.
TYPE Ends a user-defined data type definition.
If no argument is supplied, END ends the program and closes all files.

Example

PRINT "Game over." END