> Hi, I have a real easy question for you experts ;)
>
[quoted text clipped - 10 lines]
>
> Thanks for your help.
done: while (true) {
while (true) {
break done;
}
}

Signature
Knute Johnson
email s/nospam/knute/
> Hi, I have a real easy question for you experts ;)
>
> I want to break out of two loops...is there a way of doing this without
> using flags?
labelOfOuterLoop: while(true) {
while(true) {
break labelOfOuterLoop;
}
}
The default of "break" is to end the nearest syntactically enclosing
loop. If you want to break any other enclosing statement, you have to
point out which block to break. That is done by giving the statement a
name, using a statement label, and using that name in the break.
/L

Signature
Lasse Reichstein Nielsen - lrn@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
'Faith without judgement merely degrades the spirit divine.'
Noodle - 08 Aug 2006 07:22 GMT
> > Hi, I have a real easy question for you experts ;)
> >
[quoted text clipped - 17 lines]
> DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
> 'Faith without judgement merely degrades the spirit divine.'
Thankyou for your responses Knute and Lasse. Thats exactly what I
wanted.
Noodle