how to take index of a value in table lua 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"]