Loading ...
Sorry, an error occurred while loading the content.

Re: [Clip] How to do a return from a loop

Expand Messages
  • Axel Berger
    duke_nukem_time wrote: Why don t you just define a reentry point right after the exit? Like this: ^!Goto Loop2 ; Nothing here between the line above and below
    Message 1 of 1 , Jun 17, 2007
    • 0 Attachment
      duke_nukem_time wrote:

      Why don't you just define a reentry point right after the exit?
      Like this:

      ^!Goto Loop2
      ; Nothing here between the line above and below
      :CarryOn

      :Loop2
      ; Do some stuff
      ^!Goto CarryOn

      N.B: You oughn't really call goto contructs loops. They are a far more
      primitive and generally disparaged way of writing code, but alright for
      a script language.

      Axel
    Your message has been successfully submitted and would be delivered to recipients shortly.