i fully understand how tables work...

t = {
	["test1"] = 1;
	["test2"] = 2;
	["test3"] = 3
}

for key,v in pairs(t) do
print(key.." is "..v)
end

but for a specific script i need to access table contents without a for loop. If i am stupid please let me know

5 comments

0

print(t.test1)

0

I need to get all the contents of the table at once

0

but i can figure something out

0

thx

0

You might want to use a second table that holds the names of the keys.