VoiceGuide IVR Software Main Page
Jump to content

Result Variable Conventions

Recommended Posts

I want to track the options a subject chooses as they go through a VG script with multiple .wav play modules. In some modules the subject makes a choice (1-2 etc). In other modules they don't make any choices, or the script logic skips a branch of module

 

Question1. In modules where callers don't make any choices, or the module is skipped, what is in the Result variable for that module? Null, 0, something else?

 

Question2. Are those result variables for each play module re-set for each new call or do I need to set all those result variables to say 0 at the beginning of the script?

Share this post


Link to post
Question1. In modules where callers don't make any choices, or the module is skipped, what is in the Result variable for that module? Null, 0, something else?

If the module is skipped the RV for that module is not defined - so it gets replaced with an empty string if it is used.

 

You can pre-define the RV for that module using the RvSet() or RvSet_RvList() COM commands, then if the module is skipped the previously defined value will stand.

 

If there is a timeout then the RV value will be "timeout".

Question2. Are those result variables for each play module re-set for each new call or do I need to set all those result variables to say 0 at the beginning of the script?

RVs are cleared at start of every call.

Share this post


Link to post

If a caller enters a "2" as a choice during a play module, is the Result Variable a numberic or a string?

Share this post


Link to post
is the Result Variable a numberic or a string?

The RV placeholder is replaced with the value stored in the RV - so you can treat it as a numeric or as a string, whichever you want it to be.

Share this post


Link to post

One last question, we have programmed that a caller can repeat a module if they enter *. Will the Result Variable capture just the last variable entered the last time through the module, or will it store all the character input for each time the caller runs through that module?

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×