Check if array contains specific value
snippet in lua

Check if array contains specific value

user5783

local op = {
[19]=true,
[18]=true,
[17]=true
}


if op[19] == true then
  print("message")
else
  print("other message")
end