```lua if string.find(str1, substr) then -- ... else -- ... end ```