Answers for "for i in loop lua"

Lua
22

lua for loop

-- 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
Posted by: Guest on April-17-2020
5

lua how to make a loop

for init,max/min value, increment
do
   statement(s)
end
Posted by: Guest on April-20-2020

Browse Popular Code Answers by Language