On 08/29/2015 03:53 AM, Kay C Lan wrote:

repeat with x = 1 to 10
     add 1 to x
end repeat
beep

It's really not a good idea to try to mess with the loop index while it's running. Do this instead:

put 1 into y
repeat with x = 1 to 10
  add 1 to y
end repeat
beep

and set the break condition on the 'add 1 to y' line

--
 Mark Wieder
 ahsoftw...@gmail.com

_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to