Syntax:
do body-statement while ( boolean-expression );

In the above syntax description, the single body-statement may be replaced with multiple statements by enclosing those statements in a statement block using braces:

{ statement1; statement2; statement3; }

Description:
The do/while statement repeatedly executes the body-statement as long as the boolean-expression evaluates to true up to a maximum of 10,000 executions. If the boolean-expression evaluates to false or null, looping stops and the formula continues by executing any statements after the do/while statement. Note that the body-statement will always be executed at least once since the boolean-expression is not evaluated until after the first execution. If the boolean-expression is omitted, then it is considered to be true every time.