Table question

Hi community,

can someone explain to me this table and loop?
[lua]
local t = {{var = “bla”, foo = “soo”},0}

for i,v in pairs(t) do
if t[i] ~= 0 then
print(t[v] == bla)
end

for i,v in pairs(t) do
if t[i] ~= 0 then
print(t[i].var == “bla”)
end
end[/lua]

why this for loops working and this do not:
[lua]for i,v in pairs(t) do
if t[i] ~= 0 then
print(t[v] == “bla”)
end[/lua]

Any help is appreciated, its not urgent and not really a problem, im just curious why this is happening [import]uid: 16142 topic_id: 20148 reply_id: 320148[/import]