CCRS Editor using wild cards?

Answered Question

Hi, His there a way to use wild card in a UCCX script? Let say I want to exclude any called number beginning 64XXX (X representing a wild card) ?


Best regards

Jean L

Correct Answer by James Hawkins about 7 years 9 months ago

Assuming that the called number is stored in a string then you could use the substring function in a Set step to store the first two digits in another string variable and then use the If step to set actions based around whether the value is 64.


The syntax required for the Set step is show below:


CalledNumber.substring(0,1)


If this helps please rate.

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Loading.
Correct Answer
James Hawkins Thu, 06/18/2009 - 15:41
User Badges:
  • Gold, 750 points or more

Assuming that the called number is stored in a string then you could use the substring function in a Set step to store the first two digits in another string variable and then use the If step to set actions based around whether the value is 64.


The syntax required for the Set step is show below:


CalledNumber.substring(0,1)


If this helps please rate.

Actions

This Discussion