ForceSky
|
  |
| Joined: 30 Jul 2012 |
| Total Posts: 2379 |
|
|
| 26 Aug 2014 01:34 PM |
Say I have this table:
local a = { Stone = {1, 2, 3}, }
Could I do this?
for i, v in pairs(a) do if v[3] == 3 then print(tostring(v)) end end
Would that return Stone? |
|
|
| Report Abuse |
|
|
Zalchire
|
  |
| Joined: 01 May 2011 |
| Total Posts: 1658 |
|
|
| 26 Aug 2014 01:43 PM |
go to SH
this is not building related |
|
|
| Report Abuse |
|
|
llharry
|
  |
| Joined: 31 Aug 2008 |
| Total Posts: 46 |
|
|
| 27 Aug 2014 07:48 AM |
Wrong board. But to answer your question, it would return the table 'stone'. Not the string "stone" in case that's what you meant. |
|
|
| Report Abuse |
|
|