How to exit from a loop in asp?

abhii_sagii

New member
if condition then
do....
else
"i want to exit to next loop here"
end if

if condition
do ,.....
else
do.....


Above, i want to do nothing in first else statement and just want to go to next if else.
Any suggestions
 
try to use goto command:

if condition then
do
loop
else
goto nextLocation <---------------this command jumps the control anywhere
end if

:nextLocation <-----------this is label, now control will here
if condition
do......
else
do.....
end if

hoping this would helpful to you.
 
Back
Top