I am interested in passing a function as a condition to a repeat loop within a function I am writing that I want evaluated every time through the loop. In code:
Code: Select all
function myRepeat conditions, maxIterations
put 1 into loopCounter
repeat until (conditions or loopCounter>maxIterations)
wait 200 milliseconds
add 1 to loopCounter
end repeat
return 0
end myRepeat
Code: Select all
put myRepeat("the mouseClick",3) into output
Thanks,
Tom