cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements

556
Views
5
Helpful
2
Replies
rastetterj
Beginner

UCCX "IF" statement help

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
Advocate

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
Advocate

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

rastetterj
Beginner

That was what I needed.  Thank you.

Content for Community-Ad