Topic : The GFA-Basic Compendium
Author : GFA Systemtechnik GmbH
Version : GFABasic.HYP v2.98 (12/31/2023)
Subject : Documentation/Programming
Nodes : 899
Index Size : 28056
HCP-Version : 3
Compiled on : Atari
@charset : atarist
@lang :
@default : Document not found
@help : Help
@options : +g -i -s +z
@width : 75
@hostname : STRNGSRV
@hostname : CAB
@hostname : HIGHWIRE
@hostname : THING
View Ref-FileFOR, TO, STEP, DOWNTO, NEXT (ENDFOR)
REPEAT, UNTIL (ENDREPEAT)
WHILE, WEND (ENDWHILE)
DO, LOOP (ENDDO)
DO WHILE, DO UNTIL
LOOP WHILE, LOOP UNTIL
EXIT IF
3 is provided with an unusually large selection of loop types.
Normally one differentiates between 'entry testing' and 'exit testing' loops.
'Entry testing' loops are those, such as WHILE-WEND, in which the abort
condition for the loop is checked before entry into the loop. While with 'exit
testing loops', such as FOR-NEXT, this condition is examined at the end of the
loop, consequently such are gone through at least once. A special loop type,
DO-LOOP, is also available in . This type acts as a continuous loop
without an abort condition. In this command can be very flexibly
used. Both after DO and after LOOP the extensions WHILE and UNTIL can be used
so that the loops begin or end with a logical condition. In all of the loop
types mentioned here, as many as abort conditions as required may be used in
the loop body using the EXIT IF command.
Memo: For compiler optimizations see section 'Loop Commands'