Welcome to the Ifbyphone Developers zone. This forum provides a place for the community of advanced Ifbyphone users and developers to share ideas, exchange code, and ask questions.  

Additional Resources

Ifbyphone Company Blog - Ifbyphone Twitter Page - Ifbyphone Company Web Site - Ifbyphone Partners Page
Ifbyphone's CEO's (Irv Shapiro's) Personal Blog - Irv Shapiro Twitter Page

It has been brought to our attention that the NEW MEMBER link does not always display in IE7. If you do not see the new member link in the login box on the right, please try another browser. (Firefox works fine.) In addition please note that Phonemashup accounts are completely separate from Ifbyphone accounts.

If you need help fast, call 877 295 5100 to reach the Ifbyphone "Success Team".   (Support is option 2.)

Members Login
Username 
 
Password 
    Remember Me  
Chatbox
Please log in to join the chat!
Post Info TOPIC: Conditional Branching


Member

Status: Offline
Posts: 8
Date: Nov 13, 2010
Conditional Branching
  
 


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
  
 

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: 58
Date: Apr 11, 2011
  
 

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
  
 

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: 58
Date: Apr 11, 2011
  
 

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: December 11th
  
 

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 Facebook Post to Digg Post to Del.icio.us

This is an open and public forum so Ifbyphone is unable to ensure that all code and suggestions posted to this forum are correct. Please use all code posted here at your own risk. Ifbyphone assumes no liability for code, recommendations and suggestions posted to this forum.

Users and developers will find hundreds of useful posts at the Ifbyphone company blog.