condition | An expression evaluated before each pass through the loop.
If condition evaluates to true, then the statements in loop are executed.
If condition evaluates to false, then execution continues with the statement after the loop. |
---|---|
statements | A statements that are executed repeatedly as long as the condition evaluates to true. |
var i = 1;
while (i <= 6)
{
Pm.Debug("Boiler " + i);
i++;
}