Re: goto's, and loops

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

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

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

Search



Quick Links

User menu

Not signed in.

Misc Menu