Re: goto's, and loops
Kat wrote:
> Maybe i am in a rut, but i don't see an nice way
> to do this example in Euphoria, can you help,
> please?
You could write:
continue = 1
while loop1 and continue do
some code
while loop2 do
if test var then
continue = 0
exit
end if
more code
end while
end while
Or perhaps:
exitFlag = 0
while loop1 do
some code
while loop2 do
if test var then
exitFlag = 1
exit
end if
more code
end while
if exitFlag then
exit
end if
end while
-- David Cuny
|
Not Categorized, Please Help
|
|