You don't need to specify the end as #t-1. It'll stop if the step bumps the integer past the end. For example, for i=1,4,2 do will loop 1 and 3, then stop, because 5 will be greater than 4.
__________________
WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)
|
|