Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Community Member

Finding the length of a caller entered value

Hi all,

I'm trying to find the number of digits that a caller has entered so that I can append a number of zeroes to the value. I've looked at the various length functions found in the expression editor but I can't figure how to use them. Anybody have any examples?

Thanks

1 REPLY
Community Member

Re: Finding the length of a caller entered value

I'm using IPCC 7.x and use a handful of length expressions.

I would accomplish this by adding an 'If' node and using the length expression like this:

len(CallerEnteredDigits)=5

The success result would be exactly 5 digits in CED, a failure would be anything other than 5 digits.

You can manipulate that further by using greater/less than. You could also plug any variable into the quotes to perform the length function against it the same way.

Hope this helps.

108
Views
0
Helpful
1
Replies
CreatePlease to create content