All Statements
Exit Statement
For...Next Statement
While....Wend Statement
STATEMENT: Do
Implemented in version 1.0
Do
. . .
Loop
The
Do
statement repeats a block of code
Until
a condition becomes true or
While
a condition is satisfied.
You must end all
Do
statements with
Loop
or you will get an error message. You can place
Do
loops inside of other conditional statements. The
While
and the
Until
condition may be placed after the
Do
or the
Loop
.
Code:
<%
number = 1
Do Until number = 5
number = number + 1
Loop
%>
<%
number = 1
Do
number = number + 1
Loop Until number = 5
%>
<%
number = 1
Do While number < 5
number = number + 1
Loop
%>
<%
number = 1
Do
number = number + 1
Loop While number < 5
%>
Copyright 1999-2004 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information