cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1362
Views
5
Helpful
1
Replies

UCCX 8.5 IF Statement Range

Angel Ramirez
Level 1
Level 1

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 1

Anthony Holloway
Cisco Employee
Cisco Employee

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

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: