VoiceGuide IVR Software Main Page
Jump to content

Evaluate Expression

Recommended Posts

I have created for you a shorter version of script that clearly shows

that Value of {Not Approved} is defined; Log shows that it is received back

and $RV[status] is set to {Not Approved} but still the path that is configured

not taking place.

 

I have attached a 4VG_support.zip file:

Inside you will find a copy of a short script and log file.

Also I am attaching a dummy executable

that returns the value of {Not Approved} plus MusicOnHold.wav

Share this post


Link to post

In the module [Evaluate Status] try using this:

 

"$RV[status]"

 

instead of just

 

$RV[status]

 

unless the quotes are used the result is evaluated to a numeric and/or boolean, and the paths you use are string based...

 

(you can sort of see what is happening in the trace...)

Share this post


Link to post

Looks like it helped to add the quotes...

 

still it was confusing that it without quotes it worked just fine for ALL other values except the {Not Approved}... Other values are string type also, applying your logic

it shouldn't have worked for the rest either.

 

Anyhow I will keep it within quotes from now on...

Share this post


Link to post

Maybe the keyword "Not" at the beginning of the string was resulting in the expression processor to somehow default to boolean mode?

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
×