cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
332
Views
0
Helpful
1
Replies

Finding the length of a caller entered value

bruce.finney
Level 1
Level 1

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 1

davidgoude
Level 1
Level 1

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.