📜  如果字符串包含 lua - 任何代码示例

📅  最后修改于: 2022-03-11 14:55:08.079000             🧑  作者: Mango

代码示例1
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