How would I make a string that finds things that don't match?

Hello! Im kind of new to using strings so, Im gonna need some help with this one. Basically im trying to see if strings can be used to detect if something does not match.

local String = "hello"
if not string.match("hi",String) then
print("String Doesn't Match!")
end
1 Like

oh my goodness im so dumb, thank you so much!

1 Like