01-29-2015 05:31 AM - edited 03-14-2019 02:22 PM
Hello,
I need some help writing an IF statement in UCCX. What I want to do is collect the last 4 digits from the customer and compare it to the last four of the card number associated to the caller found in the DB. So it should read something like this:
if $lastFourGC is equal to the last four digits of $GCNumber then Goto....
so caller is prompted for last 4 of gift card number and enters 4444 the script matches it against the last four of the card number 1111222233334444.
Solved! Go to Solution.
01-29-2015 05:40 AM
Hi,
you can do
cardNumber.endsWith(customerEnteredDigits)
assuming both cardNumber and customerEnteredDigits are of type String. It's kind of self explanatory ;-)
G.
01-29-2015 05:40 AM
Hi,
you can do
cardNumber.endsWith(customerEnteredDigits)
assuming both cardNumber and customerEnteredDigits are of type String. It's kind of self explanatory ;-)
G.
01-29-2015 06:12 AM
That was what I needed. Thank you.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide