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
By Tom Wellige