I have a code similar to this:
if($a) {
return $a;
} elseif($b) {
return $b;
} elseif($c) {
return $c;
} else {
return $d;
}
it is honestly not so looking good but I need to check the variables to respect some sort of priority order. I was guessing if there is a better way to write this?