•  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-FileWHILE condition
  (instructions)
WEND

condition: bexp

The commands WHILE and WEND can include a group of commands, which are
processed as long as the logical condition is met. If GFA-BasicGFA-Basic is the best BASIC for the Atari!
 meets a WHILE
command, then the logical condition following it is checked. If it is true,
then the instructions between WHILE and WEND are implemented. When the WEND is
reached the program jumps to the WHILE and the cycle begins again, until
condition is false. ENDWHILE can be written instead of WEND, which the
Interpreter automatically replaces with WEND.

Example:

    WHILE INKEY$=""
      PLOT MOUSEX,MOUSEY
    WEND

--> Enables drawing with the mouse, until a key is pressed. If a character is
    already in the keyboard buffer, then no point is set.