While
Control flow statement.
Syntax
`
Do While condition
[statement block]
Loop
or
Do
[statement block]
Loop While condition
or
While [condition]
[statement block]
Wend
`
Description
`While` specifies that a loop block will continue if the `condition` following it evaluates as true. This `condition` is checked during each loop iteration.
Example
`
Dim a As Integer
a = 0
Do While a < 10
Print "hello"
a = a + 1
Loop
'This will continue to print "hello" on the screen while the condition (a < 10) is met.
`
Differences from QB

- None

See also

- `Do...Loop`
- `While...Wend`