VoiceGuide IVR Software Main Page
Jump to content

Get Numbers And Zero's

Recommended Posts

When using a get numbers module get 10 digits,

You can usualy eval the lenght of the input like so:

 

Len($RV[GetSomeCode])= 10, to get a true or false.

 

However, when the input is "0000000000", the following occurs:

.Eval(Len(0000000000)= 10)

6 Eval Expr result:[False]

 

I considered that somewhere in the workings of the voiceguide 'eval module' that the string of zeros here is being treated as an integer or number data type of some sort, which made me try to get the string representation of the zeros with

 

Len(Str($RV[GetSomeCode]))= 10, to get a true or false.

135243.08 6 RVreplace end: [Len(Str(0000000000))= 10]

135243.08 6 .Eval(Len(Str(0000000000))= 10)

135243.08 6 Error: 13

135243.08 6 path {Len(Str(0000000000))= 10} not found

 

which gives error 13? so str() is obviosly not supported.

 

 

Some further testing with: Len($RV[GetSomeCode])= 10, to get a true or false. shows:

 

'No Probs when the first value value > 0'

135535.11 8 .Eval(Len(1111111111)= 10)

135535.11 8 AddRVns [EvalPCodeLen_Input]{Len(1111111111)= 10}

135535.11 8 AddRVns [EvalPCodeLen]{True}

 

'Problems when the first value is a 0'

135527.30 8 RVreplace end: [Len(0111111111)= 10]

135527.30 8 .Eval(Len(0111111111)= 10)

135527.30 8 AddRVns [EvalPCodeLen_Input]{Len(0111111111)= 10}

135527.30 8 AddRVns [EvalPCodeLen]{False}

135527.30 8 Eval Expr result:[False]

 

 

I understand that I can use the length validation in the get numbers module (which counts the input correctly) but it does not provide the level of validation i require. I need to be able to evaluate lenght in an eval module correctly.

 

Can you offer me any solutions.

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
×