Version: 1.0
The Exit statement allows you to exit from inside a block of code such as a conditional statement (Do ...Loop, For ... Next, For Each ... Next) or a procedure (Function, Sub) before it would normally be completed.
<% Exit Do %>
This allows you to exit from inside a Do Until ... Loop.
<% Exit Do %>
This allows you to exit from inside a Do While .... Loop.
<% Exit For %>
This allows you to exit from inside a For ... Next.
<% Exit For %>
This allows you to exit from inside a For Each ... Next.
<% Exit Function %>
This allows you to exit from inside a Function.
<% Exit Sub %>
This allows you to exit from inside a Sub.