cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
535
Views
0
Helpful
2
Replies

Match on what the ANI starts with

kevinhobson2000
Level 1
Level 1

Hi,

Im trying to get my script to route depending on what the ANI starts with.

i have tried an IF statement with ANI =="first 3 digits"

But it doesnt see it as true.

It looks like i need something that specifies begiins with?

Cheers

Kev

2 Replies 2

kevinhobson2000
Level 1
Level 1

I have found a booleon ?.(starts.with).

But it doesnt seem to take

callerani.startsWith(first 3 dig).

Anyone familiar with the syntax for this?

Thanks

Kev

Need quotes.

callerani.startsWith("first 3 dig")

sorted

cheers