for i = 1 lua code example
Example 1: 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"
Example 2: for loop lua
local t = {}
for index, value in ipairs(t) do
print(index, value)
end