user619271
0
Q:

lua loops

-- 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
8
for init,max/min value, increment
do
   statement(s)
end
4
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"
4
while expression do
  --code
end
0

New to Communities?

Join the community