I want to nest loops (repeat). But I do not know how to avoid repeat of 10x
I have to search a list "a, b, c, d, e, f, g, ..."
but the devices may be called:
"a.log"
"b.log"
"c.log"
"d.log"
"aa.log"
"ab.log"
"ac.log"
"bba.log"
....
Code: Select all
put "a,b,c,d,e,,,,,," into ListeItem
repeat with x = 1 to the number of items of ListeItem
put x & ".log" after fld "info"
.....
end repet
How cleanly, saying that when the first repeat loop is finished. It should add a 2nd digit and so on up to 10 without impriquer 10 repeat.
And sorry for my question from beginner
thank you
Krynn