RAD Studio
ContentsIndex
PreviousUpNext
while

Category 

Statements 

Syntax  

while ( <condition> ) <statement>

Description 

Use the while keyword to conditionally iterate a statement. 

<statement> executes repeatedly until the value of <condition> is false

The test takes place before <statement> executes. Thus, if <condition> evaluates to false on the first pass, the loop does not execute.

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!