so i'm mediocre at lua, but i was just playing around with this
local profanitywords = {"fuck", "shit", "ass"} -- a small list
local input = io.read()
for i,v in ipairs (profanitywords) do
if string.find(input:lower(), v) then
print("Profanity")
else
print("Not Profanity")
end
end
but what i get in the output is this:
Output Image also, i'm using zerobrane studios
and sometimes when i enter different things, it doesn't work at all. help?