07-05-2007 04:05 AM - edited 03-14-2019 01:01 AM
Hi !!
I want to identify if a caller is calling to IPCC from an internal extension.. (4 digits 4000-4999 or 8000-8999)
Im trying to use the IF STEP, but im not sure how to write this expression:
{
if ( varNumberInt >= 4000 | varNumberInt <=4999)
varExtension == 1;
else
if ( varNumberInt >= 8000 | varNumberInt <=8999)
varExtension == 1;
}
ps. all variables are Integer
Thanks !
Andrei.
Solved! Go to Solution.
07-05-2007 04:31 AM
Andrei,
You can use this expresion in the IF node:
(varNumberInt >= 4000 && varNumberInt <=4999) || ( varNumberInt >= 8000 && varNumberInt <=8999)
If this expresion is true you must add to the IF true branch a SET statment that gives to varEstension the value of 1.
The ANI value is a string variable that you must convert to integer.
Hope this helps,
Juan Luis
07-05-2007 04:31 AM
Andrei,
You can use this expresion in the IF node:
(varNumberInt >= 4000 && varNumberInt <=4999) || ( varNumberInt >= 8000 && varNumberInt <=8999)
If this expresion is true you must add to the IF true branch a SET statment that gives to varEstension the value of 1.
The ANI value is a string variable that you must convert to integer.
Hope this helps,
Juan Luis
07-05-2007 04:56 AM
YEAH !!!! It works !!!!
:)
Thanks a lot !
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide