lua for each in table
for k,v in pairs(table) do
-- k is key
-- v is value
end
lua for each in table
for k,v in pairs(table) do
-- k is key
-- v is value
end
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
lua for loop
for init,max/min value, increment
do
statement(s)
end
For loop lua
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"
for loop lua
local t = {}
for index, value in ipairs(t) do
print(index, value)
end
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us