Repeat Loop

DunbarX at aol.com DunbarX at aol.com
Fri Nov 20 16:28:50 EST 2009


Bug in last post;

But going from -1 to 1 (or -1 to 0 or 0 to -1) gives 12 interations, one
extra. --either 22 or 12, not 21 or 11. Anyway, one extra.

An extra iteration is performed if 0 is within the range of the loop 
counter. It seems that when the counter reaches its max value, if 0 was in the 
range, the max value is run one more time. For the example of 0 to 1, the 1 is 
looped twice.

Craig Newman


In a message dated 11/20/09 4:22:44 PM, DunbarX at aol.com writes:


> 
> 




More information about the use-livecode mailing list