in reply to Testing for 16 possible combinations with 4 pull-down menus
which is totally unreadable and unmaintainable, doubly so when you use the full variable names. So don't do this :)$is_valid = ($a ? ($d ? $b && $c : !$b && !$c || !$b && $c || $b && !$ +c) : !($b && $c && $d);
|
|---|