While <expression> ... Wend

Top  Previous  Next

Wend will loop until the <expression> becomes false. A good point to keep in mind with a While test is that if the first test is false, then the script will never enter the loop and will skip this part. The loop which begins with While must be closed by a Wend statement.  You can nest While statement structures.

 

Example:

 

loop = 1
While loop < 10
  loop = loop + 1
Wend