Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR LUA

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"]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Lua #How #check #index #belongs
ADD COMMENT
Topic
Name
6+5 =