Re: exiting out of nested loops
- Posted by =?iso-8859-2?B?VG9uZSCpa29kYQ==?= <tone.skoda at SIOL.NET> Jan 20, 2001
- 463 views
>From: cEnsE <cense at MAIL.RU> >> while 1 do >> while 1 do >> exit --exit first loop >> exit --exit parent loop >> end while >> end while >Your idea is ok but would Euphoria not INSTANTLY break out of the >nested >while loop. The second it saw a "exit" Eu would bust out of the loop and >not >bother to look at the second one. then maybe exit(2) would be better, exit(1)=exit, but i like syntax more with prevoius, two exit statements followed.