lua for loop
snippet in lua

lua for each in table

user1483

for k,v in pairs(table) do
 -- k is key
 -- v is value
end

lua for loop

user6110

-- For K,V in table
for k,v in pairs(tbl) do
 print(k)
 print(v)
end
-- For i=0, num
for i=0, num do
 print(i)  
end

lua how to make a loop

user1353

for init,max/min value, increment
do
   statement(s)
end

For loop lua

user9020

for startValue, EndValue, [increments] do
        --code to execute
end
--The increments value is optional.  If it isn't defined, it is assumed to be "1"