VoiceGuide IVR Software Main Page
Jump to content

Incrementing A Counter In Script

Recommended Posts

David wrote:

 

We purchased your software for our client a couple of weeks ago. Most of the script is working great but I'm having a little trouble.

 

I'm trying to increment a counter in the VoiceGuide script to count the number of times a user requests a form during a single session. It is not working, even though I believe I am following the examples in the Help documentation. Obviously I must be doing something wrong....

 

Also what do we need to do to use the .net version. Will the script run without modifications?

Share this post


Link to post

Please post the script with which you are having problems and we can then have a look at it.

 

The scripts should run with no changes in v7.

Share this post


Link to post
Please post the script with which you are having problems and we can then have a look at it.

 

The scripts should run with no changes in v7.

 

I'm trying to increment a variable called formCount and when the call is finished announce to the caller how many forms they requested.

 

Thanks for you help,

 

David Faulkner

DHA.vgs

Share this post


Link to post

Transomatic: The first time the script runs, the RV may be "" (nul) so it should be initilaised to 0 to avoid a runtime error (nul+1=error). Alternatively, prefix the formula with a zero: ie:

 

0$RV[ctr] + 1

 

This way the statement evaluates to 0+1 the first time, then 01+1 (=2) second time and so on...

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
×