| |
|
| |
|
Desperian
|
  |
| Joined: 07 Feb 2012 |
| Total Posts: 3371 |
|
|
| 26 Jun 2013 07:42 AM |
T = { "One"; "Two"; "Three"; }
Find = function(Tab, Val) for key, value in pairs(Tab) do if value == Val then return key end end return nil end
print(Find(T, "Three"))
...? |
|
|
| Report Abuse |
|
|
|
| 26 Jun 2013 07:45 AM |
oh, i forgot about the second argument
-_- i'm so blind
thanks |
|
|
| Report Abuse |
|
|