While:




Syntax:

while logical expression do

Program body

wend

This loop will run as long as logical expression is true, see grammar.
The for command ends with a wend.

Grammar




Program Example:

show "Enter a number 1-20:" at 12,19;
i%=100;
while i%<1 and i%>20 do
get i% at 12,40
wend
{The above loop will run until the number i% is between 1 and 20}

Program File

Application File




Return

Last Updated: July 1998.