Next: Line Continuations
Up: The [B/D] input interface
Previous: Line parsing
Multiple lines consist of distinct command lines separated by
vertical line symbols, |. It is mostly irrelevant whether or not
several commands appear alone on several lines or all on the same line
separated by the | character. However, there are a few exceptions as
follows.
- Where a multiple line follows a FOR: statement, all
command lines included are executed accordingly, and no END:
command is needed to terminate the loop.
- where a multiple line follows an IF:
statement, all command lines included on the line are executed if the relevant
condition is true.
- The following commands may not be used (as other than a first
command) in multiple lines:
REFRESH: ; ENDIF: ; FOR: ; END: ; IF: ;
REPEAT: ; UNTIL: ; WHILE: ; WEND: .
- Macro-switching commands (RETURN: , GOTO: ,
and M: ) are not allowed in multiple-line FOR: statements.
- an ELSE: command may be used in a multiple-line IF:
statement, but not any other multiple-line command.
- if a macro-switch is found in a multiple-line IF: line,
any succeeding commands are abandoned.
David Wooff
Wed Oct 21 15:14:31 BST 1998