sbensen Report post Posted 02/28/2005 06:18 PM 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
SupportTeam Report post Posted 02/28/2005 09:29 PM 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
sbensen Report post Posted 02/28/2005 11:12 PM 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
SupportTeam Report post Posted 03/01/2005 02:59 AM 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
sbensen Report post Posted 03/01/2005 03:36 PM 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