condition | An expression evaluated after each pass through the loop.
If condition evaluates to true, then the statements in loop are re-executed.
If condition evaluates to false, then control passes to the statement following the loop. |
---|---|
statements | A statements that executed at least once and is re-executed each time the condition evaluates to true. |
var i = 1;
do
{
Pm.Debug("Boiler " + i);
i++;
} while (i <= 5);