Jump to content

- PBXScript

- # PBXScript.CompareNumbers()

  Followers 0

  Lua → VBScript SwxWare v13.10

  This function returns either true or false if a certain number is completely or partly given in another number respective list of numbers.

      PBXScript.CompareNumbers(sNumber, sNumberList)

  This function returns a boolean value.

  Parameters

  sNumber

  string. The number to search for.

  sNumberList

  string. The list of numbers to search sNumber in. It is possible to use the wildcard * (asterisk) as placeholder for any following digit respective number of digits. A ; (semicolon) in the number list separates different numbers.

  Example

      local sNumberList = "49231477733*;34*"
      if (PBXScript.CompareNumbers("333", sNumberList) == true) then
        -- do something
      end

  This example returns true as "333" is in fact part of the number list, "49231477733*".

  By Tom Wellige

  - May 22, 2022
  Share
  Share
  Followers 0

## 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.