If string includes (Solved)

I was wondering if someone knew how to check if a string includes a specific word or something?
I tried if string:match("word") then
But that only worked when the string the :match was used for was exactly the “word”

(the strings to match were changing too quickly)

You can use if string:find("word") then.

1 Like

That can’t be right

print(("wwwwwords"):match("word")) --Prints "word"
1 Like