Keyword WHILE is used to run a group of statements as long as a given condition is true. The group of statements should be terminated with keyword WEND
a = 4 while a < 10 DrawText (10, 10 * (a-4), "A is " & a) a = a + 2 wendThe above cycle is performed 3 times for a=4, a=6 and a=8,
See also: