statement blocks

A statement block is one or more statements that follow a BASIC decision-path related token such as, but not limited to, then, else, locked, and onerr.

Syntax

[am|;] statement{[am|;] statement...} end
statement{; statement...}

Description

am represents an attribute mark and is interchangeable with the ; (semicolon).

Example(s)

readt tape.rec then
crt "grabbed record"
.
.
end

This is the same as:

readt tape.rec then ; crt "grabbed record" ; . ; .

In the single-line form, end is not allowed.

readt tape.rec onerr crt "error code: " : system(0) ; stop