local Table = {xd = 'Billionaire',A = 'ADMINS', O = 'ON THIS WEBSITE', I= 'IS', }
I need xd to be a string
I need to turn the keys of the table to a string
for example "xd" "A", "O"
I want them to be turned into string does anyone know how
local Table = {xd = 'Billionaire',A = 'ADMINS', O = 'ON THIS WEBSITE', I= 'IS', }
I need xd to be a string
I need to turn the keys of the table to a string
for example "xd" "A", "O"
I want them to be turned into string does anyone know how
t.a is the same as t["a"] and t.a = b is the same as t["a"] = b. The . notation is just syntactic sugar for the [""] notation, and it makes our lives easier when needing to read from a key, or write to one.
I don't know why you want this, but this can work
local keys = {}
for k in pairs(Table) do
table.insert(keys, k)
end
print(table.concat(", ", keys))
This discussion is preserved as it was. New answers, comments, and votes are closed.
2 comments
Of all the questions on this site, this one stumped me
Whats the usage of it?