How would I create a 'variable' inside a table?

What I’m trying to achieve is, how would I create a value which could later be addressed, in a table. Like this:

local t  = {}

table.insert(t, local a = 'yes ok plz aaaaaa')
print(t.a)

So, how would I do this? Is there anything metatables can do to achieve this? Or is there a more basic way?

3 Likes
t.a = "yes ok plz aaaaaa"
print(t.a)

you are welcome

9 Likes

I can’t believe it.

6 Likes