While...Wend

Program flow management function.

The While...wend structure defines a loop with a completion check at the beginning.

Usage

Used to repeat the same steps a certain number of times or until a condition is true.

Syntax

While <boolean_expression>
 <statements>
Wend

Parameters

<statements>: statements to be executed while <boolean_expression> is true.

See also

Logical operators

Repeat...until

Example

 

a = 0

While a < 5

  beep (100)

  a = a + 1

Wend