This is an experimental feature that may change in future versions.
It is provided for compatibility with the Windows version of BBC BASIC and to enhance the code readibility of the Z80 version.
A keyword which terminates a WHILE…ENDWHILE clause. If the ENDWHILE statement is executed, BBC BASIC jumps to the matching WHILE statement. If the WHILE condition is not met, control is transferred to the statement after the matching ENDWHILE statement.
WHILE LEFT$(A$,1) = " " A$ = MID$(A$,2) : ENDWHILE
Syntax
ENDWHILE