Escaping from Repeat loops

Paul Gabel paulgabel at comcast.net
Fri Sep 14 13:09:23 EDT 2007


> repeat xNumberOfTimes
>       global doCancelVariable
>
>       -- My Code Here
>
>       wait 1 tick with messages
>       if doCancelVariable = "true" then
>          exit to top
>       end if
>    end repeat

Maybe I'm missing your point, but why not just write:


global doCancelVariable

repeat until doCancelVariable = "true"

       -- My Code Here

    end repeat

Paul Gabel





More information about the use-livecode mailing list