Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Users might experience few discrepancies in Search results. We are working on this on our side. We apologize for the inconvenience it may have caused.
New Member

UCCX 8.5 IF Statement Range

Can someone help me out?

I'm working on a script that calls out for caller to enter a customer number.  If this customer number falls between a certain range, caller is transferred to a particular CSQ.

How do I create an IF statement to contain a number range. I created IF statement (sCustomer_Number == 001 || sCustomer_Number == 002 || sCustomer_Number == 003) but if customer number range is 001 thru 050, that If statement will be big,

Does anyone know if a better way?

Thank you.

1 REPLY

Re: UCCX 8.5 IF Statement Range

I just answered a similar question based on phone number ranges here: https://supportforums.cisco.com/message/3988000#3988000

Convert the customer entered digits into a number first.

caller_input = Get Digit String
Set the_number = int.parseInt(caller_input)

Where caller_input is a String and the_number is an int.

Next create your If ranges.

If (the_number >= 1 && the_number <= 10)
  True
    Set CSQ ="CSQ1"
    Goto Select Resource Section
  False
    /* Do nothing if false */
If (the_number >= 11 && the_number <= 20)
  True
    Set CSQ ="CSQ2"
    Goto Select Resource Section
  False
    /* Do nothing if false */

Hope the helps.

Anthony

Sent from Cisco Technical Support iPhone App

Anthony Holloway

Please use the star ratings to help drive great content to the top of searches.
459
Views
5
Helpful
1
Replies
CreatePlease to create content