cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
737
Views
5
Helpful
2
Replies

UCCX "IF" statement help

rastetterj
Level 1
Level 1

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.

 

 

 

1 Accepted Solution

Accepted Solutions

Gergely Szabo
VIP Alumni
VIP Alumni

Hi,

you can do

cardNumber.endsWith(customerEnteredDigits)

assuming both cardNumber and customerEnteredDigits are of type String. It's kind of self explanatory ;-)

G.

View solution in original post

2 Replies 2

Gergely Szabo
VIP Alumni
VIP Alumni

Hi,

you can do

cardNumber.endsWith(customerEnteredDigits)

assuming both cardNumber and customerEnteredDigits are of type String. It's kind of self explanatory ;-)

G.

rastetterj
Level 1
Level 1

That was what I needed.  Thank you.

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: