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

See Also

else Clause

get Statement

if Statement

ifr Statement

in Statement

input Statement

locate Statement

lock Statement

locked Clause

matread Statement

onerr Clause

open Statement

procread Statement

read Statement

readnext Statement

readt Statement

readtx Statement

readv Statement

rewind Statement

root Statement

send Statement

then/else Statement Blocks

weof Statement

writet Statement