Easy in python:
if 5 in {1,2,3,4,5,7,9}:
print("Yay python!")
In lua, I wrote my own function:
function is_in_table(t,value)
for i=1,#t do
if t[i]==value then
return true
end
end
return false
end
a = {1,3,7,2,9}
if is_in_table(a,5) then
print("5 is table a")
else
print("not!")
end