Forum Categories >> PBX Setup, Call Routing, PBX Patterns, Voicemails

Decision statement logic not working as expected

Asked by PBX Setup, Call Routing, PBX Patterns, Voicemails on May 23, 2015 6:00 PM

May 23, 2015 6:00 pm
By: Scott Reynolds
On: May 23, 2015 6:00 pm

Decision statement logic not working as expected

Hello. I am trying to use the Decission Statement logic to route calls based on numeric keypad input, or lack there of. I have variable I'm trying to capture {callbacknumber}. I ask the caller enter their 10 digit call back number or press 0 if you do not know it. The decission statement says

"if {callbacknumber} = 0" TRUE email "no call back number entered" FALSE:

"if {callbacknumber} = "" " TRUE Repeat Step 1 FALSE:

"if {callbacknumber} > 99999999" TRUE email "call back numer is {callbacknumber} FALSE:

Repeat Step 1

When I enter 0 I am emailed the call back number is 0

When I enter Nothing I am emailed the call back number is (blanK)

When I enter the 10 digit number I am emaile call back number is (ten digit number)

The evaluation of the digits makes no sense. How do I determine if there is nothing entered, or a number less than 10 digits entered?



Thank you.
May 26, 2015 4:21 pm
By: RingRoost Support Team
On: May 26, 2015 4:21 pm

Decision statement logic not working as expected

Hi Scott,

When checking if the user did not enter anything just leave the field entirely blank. ie: (remove the quotations). If they have not entered anything it will evaluate to true, otherwise false.



Thanks,

RingRoost Support Team
Stay connected with ringroost