Top  Previous  Next

Scripts > Class elements and c++ instructions > Interpreted C++ instructions > Control structures > while




while ( <condition> ) <statement>




Use the while keyword to conditionally iterate a statement.

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

If no condition is specified, the while clause is equivalent to while(true). The test takes place before <statement> executes. Thus, if <condition> evaluates to false on the first pass, the loop does not execute.

This page belongs to the TextTransformer Documentation

Home  Content  German