•  Back 
  •  Main 
  •  Index 
  •  Tree View 
  •  Cross references 
  •  Help 
  •  Show info about hypertext 
  •  View a new file 
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-FileDO
  (instructions)
LOOP

The commands DO LOOP produce a continuous loop. The program processes the
instructions between DO and LOOP and returns upon meeting LOOP to the command
DO. The loop can only be left by means of EXIT IF, GOTO, or other such commands
to abandon its execution. In place of LOOP, ENDDO can be written, which the
Interpreter replaces with LOOP.

Example:

    DEFFILL 1,2,4
    DO
      MOUSE mx,my,mk
      IF mk
        PBOX mx,my,mx+25,my+25
      ENDIF
    LOOP


--> Draws filled rectangles at the current mouse pointer position when a mouse
    key is pressed.