VoiceGuide IVR Software Main Page
Jump to content

Simple Question - Evaluate Expression Module

Recommended Posts

I want to make the input keyed by a user change the value of a result variable used later in the script.

 

For example if the user keys 1 the result variable should take a value of 002

and if the user key 7 the result variable should take a value of 014

 

all other keyed values are invalid (and this is coped with)

 

I also want to define a default value for teh result variable if the user does not take the path where they are invited to make teh keyed entry.

 

I guess I need to use evaluate expression module but any guidance would be appreciated

Share this post


Link to post

I want to use a keyed value to set the value of a result variable used later in the script.

 

Specifically if the user keys 1 I would like to set the RV to 002 (must be three digits)

and if the user keys 7 set the RV to 014

 

No other choices are necessary.

 

If the branch has not been taken where the user makes this keyed input I would like to set a default value to the RV of 000 (presumably earlier in the script)

 

I assume I can use the evaluate expression module to to do this but any guidance would be appreciated.

 

Thanks in advance

 

 

BTW Apologies if I have not double posted

Share this post


Link to post

Yes, the evaluate expression module can be used to assign values to RVs.

 

Here is a sample script the demonstrates the approach:

rvset.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
×