Do While...Loop

<< Click to Display Table of Contents >>

Navigation:  Control Commands >

Do While...Loop

Description

Repeats a block of statements while a Boolean condition is True or until the condition becomes True.

Syntax

Do While condition
   Version [statements]
Loop

 

The Do While...Loop statement syntax has these parts:

 

Part

Description

condition

Numeric or string expression that evaluates to True or False. If condition is Null, condition is treated as False.

statements

One or more statements executed while condition is True.