Jump to content
  • IsInString()


    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.





    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


  • Create New...

Important Information

By using this site, you agree to our Terms of Use and have taken note of our Privacy Policy.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.