Update cookies preferences
Promotic

while - statement of language JavaScript

Description:
Repeats a block of statements while the condition is true.
Syntax:
while (condition)
{
  [statements]
}


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.
Note:
break statement can be used inside a loop to provide an alternate way to exit.

In the VBScript language is used the statement for this purpose Do...Loop.
See also:
Example:
Statements in cycle 1 - 6
JavaScriptSelect and copy to clipboard

var i = 1;
while (i <= 6)
{
Pm.Debug("Boiler " + i);
i++;
}
PROMOTIC 9.0.31 SCADA system documentation MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r.o.