Posted 22 March 2013 - 11:37 PM
I am having a mental BLANK. How can I find something in a table for example a randomally generated key which I have put in there.
local items = { "Hugo", "Karl", "Geerd", "Bananarama" }
for k, v in pairs(items) do
if v == "Bananarama" then
print(k)
break --delete this if there are multiple entries
end
end