lua loops
snippet in lua

lua for loop

user9369

-- 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

user9833

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

For loop lua

user1561

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"

lua loops

user8601

while expression do
  --code
end