tbtest = { [1] = 1, [2] = 2, [3] = 3, [4] = 4, } for key, value in pairs(tbtest) do print(value) end
1 2 4 3
tbtest = { [1] = 1, [2] = 2, [3] = 3, [4] = 4, } for key, value in ipairs(tbtest) do print(value) end
1 2 3 4