VoiceGuide IVR Software Main Page
Jump to content

Manipulate Numbers From Get Number Module

Recommended Posts

CHUCHU79 wrote:

 

In there any way to manipulate every single number obtained in the get number module?. I need to route every phone call according to the area code the caller wants to call. I tried with $RV[getnumbers's module title_1_3 or _3_1] to get just a number to start, and it didn't work.

 

If not, is there at least the possibility of comparing the number to a pattern using the logical 'x' which means don't care?. in other words, can I put in the evaluate expression module the $RV_[getnumber module title] and then in the paths section:

On 305xxxxxxx GOTO Module n

On 786xxxxxxx GOTO Module m

 

I know it doesn't work too, but my question is if there is a way to solve this problem. I hope you could help me. Thanks

Share this post


Link to post

You can use function "left()" in an Evaluate Expression module to just get the first 3 digits of the entered number and then branch to different module based on that result.

 

in the Evaluate Expression module you would just specify:

 

left("$RV[getnumbers's module title]", 3)

 

and then the paths in that module can be:

 

On {305} GOTO [Module x]

On {786} GOTO [Module y]

 

 

Any VB Script type expression can be evaluated using the Evaluate Expression module. The full list of functions/operators/constants/keywords etc which can be used can be found at:

 

http://msdn.microsoft.com/library/en-us/sc...vbscripttoc.asp

 

 

List of functions which can be used in the Evaluate Expression module:

 

Abs

Array

Asc

Atn

CBool

CByte

CCur

CDate

CDbl

Chr

CInt

CLng

Cos

CreateObject

CSng

CStr

Date

DateAdd

DateDiff

DatePart

DateSerial

DateValue

Day

Eval

Exp

Filter

Fix

FormatCurrency

FormatDateTime

FormatNumber

FormatPercent

GetObject

GetRef

Hex

Hour

InputBox

InStr

InStrRev

Int

IsArray

IsDate

IsEmpty

IsNull

IsNumeric

IsObject

Join

LBound

LCase

Left

Len

Log

LTrim

Mid

Minute

Month

MonthName

MsgBox

Now

Oct

Replace

RGB

Right

Rnd

Round

RTrim

Second

Sgn

Sin

Space

Split

Sqr

StrComp

String

StrReverse

Tan

Time

Timer

TimeSerial

TimeValue

Trim

TypeName

UBound

UCase

VarType

Weekday

WeekdayName

Year

 

 

Operators which can be used in Evalute Module's expressions:

 

Addition (+)

And

Assignment (=)

Concatenation (&)

Division (/)

Eqv

Exponentiation (^)

Imp

Integer Division (\)

Is

Mod

Multiplication (*)

Negation (-)

Not

Or

Subtraction (-)

Xor

Share this post


Link to post

CHUCHU79 wrote:

 

Thanks for the "left" fuction. I have one more question. What if I need to analize also some middle numbers. For example, the entered number is 3057863557, I can compare the 305 with the

Left([fghdkgjkh],3). What about the 786?. I know I can use two modules, but according to my program, this 786 could be at times 2 numbers or one only. Thank you.

Share this post


Link to post

You can use the "mid" function for that.

 

To extract the 3 digits starting with the 4th digit onwards you would use:

 

mid("$RV[getnumbers's module title]", 4, 3)

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
×