Digitalalias
-
Posts
2 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by Digitalalias
-
-
Hi All,To my surprise, the search I did on "nested loop" didn't bring up anything. My question is how do I break a nested loop. I've seen it before but I forget what the syntax is. I think it's this
for() { . . for() { . . break; break; }}
I know that just doing one break will get you out of that 2nd loop, but what about the 1st loop. Thanks for any help.
Breaking a Nested Loop?
in JavaScript
Posted
Oh ok.. I see. More work, but it accomplishes what I need. It's so funny how long code is.. the page just gets longer and longer as you try to make a smooth exit stragety.