Nested Repeat loops

John Craig john at splash21.com
Sat Jun 21 03:21:36 EDT 2014


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.





More information about the Use-livecode mailing list