View Single Post
07-19-16, 11:34 AM   #7
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,326
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)
  Reply With Quote