Joel,You are looking for something like this logically:if(!($var(is_a_present) == $null && $var(is_b_present))){# a and b exist} else if(!($var(is_a_present) == $null){# a exists} else if(!($var(is_b_present) == $null)){# b exists} else {# failover}Sincerely,Brandon ArmsteadOn Wed, Jul 16, 2014 at 5:46 AM, Joel White <joelewhite@gmail.com> wrote:
_______________________________________________JoelThank you in advancehow can I accomplish 4 conditional statements?I do see that is can be done with 3 conditions using _if_ _if else_ _else_And a fail over if None of the variables are presentYet another if they are both presentAnother if only the second variable is presentI want one thing to happen if only the first variable is presentI was wondering how many levels deep in conditional _if_ _else_ statements can go. I need to create a statement that has 4 possible outcomes and need to know if this is possible.I have two variables
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users