Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Why no Break or Continue in ASP?

Status
Not open for further replies.

superslurpee

Programmer
May 15, 2002
108

Hi,

I was just wondering why there is no break or continue statement in ASP. It would makes things a whole lot easier than setting flags and all that. Like right now I'm coding and want to type, "If whatever Then Continue", or forget the current iteration and move on to the next. Arggg... Simple little loops are fine but when you get into some bigger ones with special conditions or whatever, it gets a bit messy.

So people, why is there no break or continue statement in ASP? Seems stupid to me not to have it!
 
Goto, yech

You can also write your code into functions, do your if checks and call the functions to execute the instructions. Cleans up the code some.
If you want to break you can exit the loop or just include an extra check in your loop
flag = true
If whatever AND flag <> true then
'do whatever
end if
not as clean, but has many uses
-Tarwn
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top