Members Login
Username 
 
Password 
    Remember Me  
Post Info TOPIC: Conditional Branching


Member

Status: Offline
Posts: 8
Date: Nov 14, 2010
Conditional Branching
Permalink   
 


Nevermind.  I think I figured it out.  Trying to delete this post, but it isn't working.  So I decided to edit it.

-- Edited by AnswerSoft on Saturday 13th of November 2010 11:57:31 PM

__________________
Mike Southerland AnswerSoft, Inc.


Member

Status: Offline
Posts: 8
Date: Apr 9, 2011
Permalink   
 

I am revisiting this, as this also relates to conditional branching, although it seems a bit more complicated than when I asked the question a few months ago.

I have a SurVo where I am going to process a credit card. I ask the caller to enter their credit card number. I want to prompt the caller to enter the security code. However, I don't want to have to ask them what type of card they have. There are conventions for telling what type of card you have by looking at the first few digits of the number. However, for this purpose its even more simple. An American Express card is the only typical card where the security code is in a different place. And an American Express card is 15 digits where Visa, MC, and Discover are all 16.

So my suvo looks something like this

...

12: Please enter your credit card number.

13: Please enter your expiration date.

{if the string length of the answer to question 12 is 16, go to 14. If the string length of the answer to question 12 is 15 go to 15.}

14: Please enter the 3 digit security code from the back of your card.

{go to 16:}

15: Please enter the 4 digit security code from the front of your card.

{go to 16}

16: Please enter the amount...

I just can't figure out how to do this conditional branching. This is elementary programming, and the constructs have been available in every language I have used. I looked into the "advanced branching" and setting the threshold based on whether the caller enters 15 or 16 digits. But so far I haven't been able to use that approach either. Is there a way to do what I'm wanting here? confuse



-- Edited by AnswerSoft on Saturday 9th of April 2011 04:06:20 PM

__________________
Mike Southerland AnswerSoft, Inc.


Veteran Member

Status: Offline
Posts: 59
Date: Apr 11, 2011
Permalink   
 

I'm not sure that advanced branching is going to meet your needs here. I think the two choices are :

1 - Break apart the call flow into multiple Survo's. You can evaluate the string length as part of a script that is hit with the NetGet. Redirect back and get the rest of the information and supply a Text to Speech message using User Parameters with 'three digit' or 'four digit.'

2 - Don't prompt for the specific number of digits.



__________________


Member

Status: Offline
Posts: 8
Date: Apr 11, 2011
Permalink   
 

OK...

Well, thanks for the help. Any plans for a more full featured programming environment? Maybe even just integrate VXML?



__________________
Mike Southerland AnswerSoft, Inc.


Veteran Member

Status: Offline
Posts: 59
Date: Apr 11, 2011
Permalink   
 

I dont' think we have anything in the near term that is going to address this issue. Generally speaking, I know a revamp of the Survo is on the horizon, but I have not heard of adding a check for string length of a question type with separate threshold values as part of it.

__________________


Member

Status: Offline
Posts: 5
Date: Dec 12, 2011
Permalink   
 

You can evaluate the length of the string was hit NetGet as a part of the script.

__________________

LED Flashlights | Cree LED Flashlights

Page 1 of 1  sorted by
 
Quick Reply

Please log in to post quick replies.

Post to Digg Post to Del.icio.us


Create your own FREE Forum
Report Abuse
Powered by ActiveBoard