statement.block Definition/BASIC Program, statement.block Definition/BASIC Program

statement.block

Command statement.block Definition/BASIC Program
Applicable release versions: AP, R83
Category BASIC Program (486)
Description one or more statements that follow a Pick/BASIC decision-path related token such as, but not limited to, "then", "else", "locked" and "onerr".

"am" is used in the syntax to represent an attribute mark. It is interchangeable with the ";" (semi-colon).
Syntax [ am | ; ] statement {[ am | ;] statement...} end
-or-
statement {; statement ...}
Options
Example
readt tape.rec then 
   crt "grabbed record"
   .
   .
end

Which 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
Purpose
Related basic.if
basic.then/else.construct
basic.else
basic.lock
basic.locked
basic.matread
basic.onerr
basic.open
basic.procread
basic.read
basic.readt
basic.readtl
basic.readtx
basic.readv
basic.rewind
basic.root
basic.send
basic.weof
basic.writet
basic.readnext
basic.get
basic.locate
basic.in
basic.input@
basic.ifr

statement.block

Command statement.block Definition/BASIC Program
Applicable release versions: AP, R83
Category BASIC Program (486)
Description one or more statements that follow a Pick/BASIC decision-path related token such as, but not limited to, "then", "else", "locked" and "onerr".

"am" is used in the syntax to represent an attribute mark. It is interchangeable with the ";" (semi-colon).
Syntax [ am | ; ] statement {[ am | ;] statement...} end
-or-
statement {; statement ...}
Options
Example
readt tape.rec then 
   crt "grabbed record"
   .
   .
end

Which 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
Purpose
Related basic.if
basic.then/else.construct
basic.else
basic.lock
basic.locked
basic.matread
basic.onerr
basic.open
basic.procread
basic.read
basic.readt
basic.readtl
basic.readtx
basic.readv
basic.rewind
basic.root
basic.send
basic.weof
basic.writet
basic.readnext
basic.get
basic.locate
basic.in
basic.input@
basic.ifr