Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Vector variable with negative value

Status
Not open for further replies.

nickd87

Technical User
Jan 18, 2006
110
AU
Does anyone know if there is any problem with repeatedly setting a local variable to a negative value in a very high volume vector.

The switch converts it to the underflow character '#' and logs a vector event. The reason I am doing this is because the vdntime variable starts incrementing as soon as a call is received and includes any time a customer is in our IVR, which I don't want to happen. So I do a step such as:

set M = 60 sub vdntime variable

which will eventually return a '#' result.

The documentation doesn't necessarily say this is a no no. Anyone had any experience or alternate suggestions for achieving what I want?

Thanks

Nick
 
I don't know if negative variables are a no-no,,, but how about a conditional step?
goto step xxx if 60 sub vdn variable < 0
then proceed as normal...
the step that you goto could just be
set m = 60
goto step xxx

I am assuming that the only time the variable is < 0 is if the client was never in the IVR... so you could also do..
goto step xxx if vdn variable = 0 ...

just a thought...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top