Hello everyone, for example if I have table.insert(Pool, {“A”}) how do I make that table ( {“A”} ) have a name, so if you would print Pool it would return
{
NameOfTable =
{“A”},
}
for name,item in pairs(Pool)
print(name)
end
I think this works
The name would return a number, while I’m looking to set the name as a string. The whole point of this post was to set a name to the table, this would just return the values.
1 Like
table.insert
places items into a table with a numerical index. You’re looking to create a dictionary, like so:
Pool["NameOfTable"] = {"A"}
1 Like