Lua SwxWare v13.10
This helper function checks is a given substring is part of a given string.
local bFound = IsInString(str, substr)
This function returns a boolean value.
Examples:
local bFound = IsInString("+494012345", "123") PBXScript.OutputTrace("bFound = " .. tostring(bFound)) --> bFound = true
local bFound = IsInString("Erika Mustermann", "Herbert") PBXScript.OutputTrace("bFound = " .. tostring(bFound)) --> bFound = false
![Tom Wellige](http://content.invisioncic.com/r255538/monthly_2020_04/facebook2.thumb.png.7201b63ad83065920f23d2478c4a838f.png)
By Tom Wellige