|
|
SyntaxWhile condition [statements] [Exit While] [statements] [Continue While] [statements] End While
DescriptionThe While...End While statement repeatedly executes program code while a given condition remains true. The loop block is executed each time condition evaluates to true; the entire loop is skipped once condition evaluates to False. The Exit While statement can be used at any time to exit the While statement early. New in 2005. The Continue While statement can be used at any time to immediately jump back to the top of the loop and attempt to process the next iteration. The condition is reevaluated immediately upon reaching the top of the loop. Usage at a Glance
Version Differences
See AlsoDo...Loop Statement |
|
|