Say I had a "for" loop that repeated 10 times, but after 3 loops I'd want something else to occur without changing what happens in the loop. How would I do this?
You assign an index value to your loop. When the index value hits three, you execute the code:
for i = 1,10 do -- regular if i == 3 then -- special code end end