Nested Repeat loops
Peter Haworth
pete at lcsql.com
Fri Jun 20 21:18:59 EDT 2014
Wondering if anyone has an elegant way of exiting all the way out of a set
of nested repeat loops., e.g:
repeat for...
repeat for...
repeat for....
repeat for
if ..... then <I want to exit out of the outermost repeat loop
here>
end repeat
<do this and that>
end repeat
<do this and that>
end repeat
<do this and that>
end repeat
Right now, I set a flag to true when the exit condition is met then test it
in the <do this and that> stuff. Works fine but feels a little kludgy.
Pete
lcSQL Software <http://www.lcsql.com>
Home of lcStackBrowser <http://www.lcsql.com/lcstackbrowser.html> and
SQLiteAdmin <http://www.lcsql.com/sqliteadmin.html>
More information about the use-livecode
mailing list