Jim Bufalini wrote:

JB

put the number of [whatever] into j   -- See note:
repeat with i = j down to 1

If you put the first line in the loop as in "i = the number of [whatever]
down to 1" the number of would be evaluated each time, I believe, and be
slower.
No, they wouldn't be - they're calculated once only. From the docs:


As with the "for number times" form described above, the startValue and endValue are evaluated when the loop is first entered, and are not re-evaluated as a result of any actions performed in the statementList.

And although it doesn't say it there, the same is also true for the "step" value if used.

--
Alex Tweedly       http://www.tweedly.net



--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.323 / Virus Database: 267.8.1/28 - Release Date: 24/06/2005

_______________________________________________
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to