09-27-2018 06:02 AM - edited 03-15-2019 06:42 AM
I have created a script (version 11.5), based upon the calling number call should redirect to Supervisors.
I am not able to figure out yet that how I can use wild card for calling number in IF statement.
Suppose My IF condition is callingNumber=="1697" || callingNumber=="4710" then it would redirect the call to supervisor Hunt.
But I want to use here wild card instead of exact match, Suppose call comes from +91172434 1697 then this condition should match based upon on last 4 digits of calling number regardless the prefix but using above syntax it is not matching
what wild card or syntax i need to use in the script to full fill my requirement?
I have attached the script in this post
Solved! Go to Solution.
09-27-2018 08:09 AM
Pasharma:
Since you are doing a [boolean] logic evaluation you can probably use the " .endsWith()" javascript tool under the Editor:
To make the following changes:
Let me know if this helps.
Sincerely,
-Sean
09-27-2018 10:05 PM
Thanks Sean! It worked
09-27-2018 08:09 AM
Pasharma:
Since you are doing a [boolean] logic evaluation you can probably use the " .endsWith()" javascript tool under the Editor:
To make the following changes:
Let me know if this helps.
Sincerely,
-Sean
09-27-2018 10:05 PM
Thanks Sean! It worked
09-28-2018 06:57 AM
You're welcome.
-Sean
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