checkItemInList.lua 199 B

123456789101112
  1. --[[
  2. Functions to check if a item belongs to a list.
  3. ]]
  4. local function checkItemInList(list, item)
  5. for _, v in pairs(list) do
  6. if v == item then
  7. return 1
  8. end
  9. end
  10. return nil
  11. end