ProtoLang.net

Reference: Exit

☰ Hide Sidebar
TOKEN EXIT
ALIAS None

The Exit Command is used to immediately stop the program.

Syntax

The short syntax structure uses the word EXIT:

EXIT

The long syntax structure uses the word EXIT:

EXIT

Examples

Example: Exiting the program

PRINT 1 // Displays "1"
PRINT 2 // Displays "2"
PRINT 3 // Displays "3"
PRINT 4 // Displays "4"
EXIT // Stops the program
PRINT 5 // This line is not executed because the program stopped!