Your Universal Remote Control Center
RemoteCentral.com
Philips Pronto Professional Forum - View Post
Up level
Up level
The following page was printed from RemoteCentral.com:

Login:
Pass:
 
 

Original thread:
Post 1 made on Friday March 20, 2009 at 09:29
n2hifi
Long Time Member
Joined:
Posts:
August 2007
192
So before build a convoluted function or series of variables, is there a way to jump out (multiple steps) of a nested "if" loop in Javascript? In C you can use a goto and I see continue works in "for" loops (even nested ones) but I don't see anything that helps here (I have read and am currently searching through Flanagan's book for an answer).
if (x){
//Do some other things then...
if (y){
//Do some other things then...
if (z){
goto SkipMsg;
}
//Do some other things
}//Do some other things
SkipMsg:;
}
Break would only get me out of one of the "if" stetements.
Mark Olsen, CTS
Cannon Design


Hosting Services by ipHouse