If String Contains Lua

[Solved] If String Contains Lua | Lua - Code Explorer | yomemimo.com
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

Answers related to if string contains lua

Code Explorer Popular Question For Lua