I have inputs $a,$b,$c,$d
and $e
and outputs $f
and $g
.
Based on the combinations of values of the inputs the values of outputs will vary. There are around 400 possible combinations.
Is there a better way to write this rather than writing 400 if else statements?
I'm writing in php
if ($a == 'aaa' && $b == 'baaa' && $c == 'abc' && $d == 'zzz' && $e = 'eee')
{
$f = 'Positive';
$g = 'Negative';
}
else if ..... // Have 400 such scenarios.