FANDOM


While StatementEdit

The code in a while block is executed as long as the conditional expression does not evaluate to False.

While-Wend StatementEdit

While Dirty
   Self.Clean
Wend

Would mean as long as the "Dirty" is True, "Self" will "Clean"

Do-While StatementEdit

Sometimes you want the block to be executed at least once.

Dim aName As String
Do
   aName = InputBox("What is your name?")
Loop While aName = ""
MsgBox "Hello " & aName

This would ask for a name, but if they gave nothing it would try again. Then it would say "Hello (Name)".

Flow Control
If | For | While | Do | Until

?

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.