VBScript » Statements » While

Syntax:
While ... WEnd

The While conditional statement repeats a block of code as long as a conditional test is True.

You must end While statements with WEnd or you will get an error message. You can place While statements inside of other conditional statements.

Examples

Code:
<%
While testnumber = 1000
Rem You can place all of the code you desire inside a While loop
WEnd
%>
Language(s): VBScript
Code:
<%
While Hour(Time) < 6
Rem You can place all of the code you desire inside a While loop
WEnd
%>
Language(s): VBScript