This is NOT supported in Lua. So you must write your own function manually. In Python, you can write the following: if i in yourList: In L
This is NOT supported in Lua. So you must write your own function manually.
In Python, you can write the following:
if i in yourList:
In Lua, write the following:
local function has_value(tab, val)
for index, value in ipairs(tab) do
if value == val then
return true
end
end
return false
end
And then, use the function to
-->