VoiceGuide IVR Software Main Page
Jump to content

Result Variables In Evaluate Expression

Recommended Posts

First off, great software!!

 

Now, my question:

 

I need an Evaluation Expression Module to simply add (or sum) two Result Variables. I think my problem is just a simple syntax error in my construction of the expression.

 

In my example below the two RV's being added were supplied in previous modules by the caller, and the total is then logged by the expression module for use in subsequent modules. This is what I've tried:

 

$RV[ProductAQty] + $RV[ProductBQty] = $RV[QtyTotal]

 

I want this result: 12 + 20 = 32

I'm getting concatenate: 12 + 20 = 1220

 

I've read the help file for Voiceguide closely, but can't figure it out. I'm using the beta version 5_12 of Voiceguide if that matters. How can I correct my expression to get it to calculate, instead of concatenate my variables?

Share this post


Link to post

I suspect that you may be specifying:

 

"$RV[ProductAQty]" + "$RV[ProductBQty]"

 

instead of

 

$RV[ProductAQty] + $RV[ProductBQty]

 

The quotes make the RV into a string - and then the system concatenates the strings...

 

Normal additions work as expected - please see the sample script attached.

RV_Addition_Test.vgs

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
×