Re: continue statement

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

On Thu, 22 Jun 2000 13:51:03 -0400, I wrote:

>while 1 do
>  if action0() then exit end if
>  if P then
>    if Q then
>      action1()
>      if not R then
>        action4()
>        action3()
>      end if
>    else
>      action2()
>    end if
>  end if
>end while

Ooops... make that:

while 1 do
  if action0() then exit end if
  if P then
    if Q then
      action1()
      if not R then
        action4()
        action3()
      end if
    else
      action2()
    end if
  else
    action3()
  end if
end while

-- Brian
-- (starting to see it's usefullness, mostly to avoid redundancy)

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

Search



Quick Links

User menu

Not signed in.

Misc Menu