> 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