Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --function
- function has_value(tab,val)
- for index,value in ipairs(tab) do
- if value == val then
- return true
- end
- end
- return false
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement