While...Wend - statement of language VBScript

Executes a series of statements as long as a given condition is true.
While condition
condition Numeric or string expression that evaluates to true or false. If condition is Null, then condition is treated as false.
statements One or more statements executed while condition is true.
If condition is true, then all statements are executed until the Wend statement is encountered. Control then returns to the While statement and condition is again checked. If condition is still true, then the process is repeated. If it is not true, then execution resumes with the statement following the Wend statement.

While...Wend loops can be nested to any level. Each Wend matches the most recent While.

Tip: The Do...Loop statement provides a more structured and flexible way to perform looping.
See also:
Dim Counter
Counter = 0
While Counter < 20
  Counter = Counter + 1
  Pm.Debug "Counter=" & Counter
PROMOTIC 8.3.21 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice