How to iterate from last index to first in table
snippet in lua

How to iterate from last index to first in table

user256

local t = {2,4,6,8}

for i = #t, 1, -1 do
    print(t[i])
end