Lua für jeden in der Tabelle
for k,v in pairs(table) do
-- k is key
-- v is value
end
Orion
for k,v in pairs(table) do
-- k is key
-- v is value
end
-- 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
for <init>,<max/min value>, <increment> [default is 1]
do
statements
end
-- Example
for i=1, 5, 1
do
print(i)
end
--Output
1
2
3
4
5
while wait() do