interrupting a repeat loop

Kee Nethery kee at kagi.com
Tue Dec 15 20:15:40 EST 2009


>> 
>> 2009/12/15 Tim Selander <selander at tkf.att.ne.jp>
>> 
>> Is there any way in RR to check for user input during a repeat loop? I'd
>>> like a loop to continue until the user types a certain key -- at which point
>>> the script would exit the handler.


In my code I have this sprinkled throughout all the repeat loops.

if the optionkey is down then
   exit repeat
end if

Then if I hold down on the option key, it drops out of that repeat loop. I sprinkle these within each repeat loop so that it drops out of whatever long process I started.

Kee Nethery


More information about the use-livecode mailing list