for a = 1, 10 do lua code example Example: how to do for i, v in lua for i, v in ipairs(table) do --code here end