in reply to Testing for 16 possible combinations with 4 pull-down menus

If you try to simplify it to an equation, you end up with
$is_valid = ($a ? ($d ? $b && $c : !$b && !$c || !$b && $c || $b && !$ +c) : !($b && $c && $d);
which is totally unreadable and unmaintainable, doubly so when you use the full variable names. So don't do this :)