lua get location of index in table code example
Example: Lua How to check what index belongs to value
local index={}
for k,v in pairs(values) do
index[v]=k
end
return index["a"]
local index={}
for k,v in pairs(values) do
index[v]=k
end
return index["a"]