You could wrap the repeats in a try structure - stick the following script in a button...

on mouseUp
   try
      repeat with i = 1 to 10
         repeat with j = 1 to 10
            repeat with k = 1 to 10
               put i && j && k
               wait for 2 millisecs with messages
               if the shiftKey is down then throw "exit"
            end repeat
         end repeat
      end repeat
   end try
end mouseUp


On 21/06/2014 02:18, Peter Haworth wrote:
Wondering if anyone has an elegant way of exiting all the way out of a set
of nested repeat loops.


_______________________________________________
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