Question : if string contains lua
Answered by : btpv
str = "This is some text containing the word tiger."
if string.find(str, "tiger") then print ("The word tiger was found.")
else print ("The word tiger was not found.")
end
Source : https://stackoverflow.com/questions/10158450/how-to-check-if-matching-text-is-found-in-a-string-in-lua | Last Update : Thu, 22 Jul 21