Your code (assuming $points is true) reduces the conditional test to a test on the min of the $Max or $new against $quota. I'm trying to understand why it's sufficient without also testing for points against some default value:return ( $points && min( $Max, $new ) > $quota ) ? $new : $Base;
if ($points > 18000 && $quota < 24) { return 24; }
In reply to Re^2: alternatives to if and series of elsif
by kiat
in thread alternatives to if and series of elsif
by kiat
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |