This could be simple , this could not be possible however I wanna know if anybody knows a way to get from a table name to a string for example how would I reference ‘global opinions’ as a string value?
2 Likes
I’m confused by the question.
Hopefully this helps:
DataTable.NumberLists.GlobalOpinions
is equivalent to
DataTable[ 'NumberLists' ][ 'GlobalOpinions' ]
And
for index, value in pairs( DataTable.NumberLists ) do
print( index )
end
will print the strings GlobalOpinions and PlayerStats.
Edit: it appears you self-identified as a moron just before I posted. Oh well, it might help some beginners out there.
In the dictionary a key without apostrophes around it or quotations is the same as a string.