This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--Please remember this is out of context | |
--at the beginning of your program | |
local ids = {1,2,3,4} | |
local function isAllowed(id) | |
for i = 1,#ids do | |
if id == ids[i] then return true end | |
end | |
return false | |
end | |
--when you want to check for id and message |