|
| 26 Apr 2013 06:46 PM |
local stats = {rank = "Respectably Cool"}
Can I access the "rank" name and the value of that name? How can I do that? |
|
|
| Report Abuse |
|
|
dekkonot
|
  |
| Joined: 22 Dec 2010 |
| Total Posts: 6685 |
|
|
| 26 Apr 2013 06:49 PM |
Like this:
stats.Rank
or
stats["Rank"] |
|
|
| Report Abuse |
|
|
|
| 26 Apr 2013 06:51 PM |
Is it possible to identify what the name of it is? Something like this?
print(tbl[1].Name) >rank
I want it to return "rank" string? |
|
|
| Report Abuse |
|
|
|
| 26 Apr 2013 06:53 PM |
Never mind I got it! Thanks for help though!
for key, value in pairs(tbl) do print(key, "=", value) end |
|
|
| Report Abuse |
|
|