The title says it all. Is there a specific function I can use (that returns a boolean) to find if an object is within a list?
Like table.find()
?
example:
local t = {'ok', 'yes', 3}
print(table.find(t, 'yes')) -- 2, the index for that value
also if you want a bool
local function tobool(a)
return not not a
end