10.14.1 Compound Statement (BEGIN-END)

Syntax

BEGIN statement [statement] ... END

{ statement [statement] ...}

Purpose

The compound statement is used to put several statements where only one statement is allowed by the syntax.

Example:

BEGIN

PRINT "this is statement one"

PRINT "this is statement two"

PRINT "etc."

END

{

PRINT "this is another first"

PRINT "followed by a second"

PRINT "these prints could be"

PRINT "any other statement"

}