This is part of the HicEst documentation
ENDDO: Terminate a Loop
A standard DO loop needs to be terminated by a ENDDO or a labeled CONTINUE. However, inline-loops and EDIT-loops are exited on an error condition.
⇾Home
⇾Contents
⇾more Programming
⇾ Examples
The ENDDO statement is the terminating statement in a
DO
loop
DO
loopvar = loopstart, loopend, loopstep
...
ENDDO
Alternatively, a
DO
loop can be written with a terminating label (e.g. 999):
DO
999 loopvar = loopstart, loopend, loopstep
! loopstep=1 can be omitted
! ... block of statements or constructs
999
CONTINUE
This allows a
GOTO
to the last (non executable)
CONTINUE
statement. This is not recommended, better is to use an
IF
construct.
⇾
Support HicEst
⇾
Impressum
©2000-2019 Georg Petrich, HicEst Instant Prototype Computing. All rights reserved.