Re: exiting out of nested loops

new topic     » goto parent     » topic index » view thread      » older message » newer message

>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.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu