$test_nums = ($total_nums <= 30) ? 1 : ($total_nums >= 31 and $total_nums <= 60) ? 2 : ($total_nums >= 61 and $total_nums <= 90) ? 3 : ($total_nums >= 91 and $total_nums <= 120) ? 4 : ($total_nums >= 121 and $total_nums <= 150) ? 5 : ($total_nums >= 151 and $total_nums <= 180) ? 6;
In reply to Re: condensing code
by jZed
in thread condensing code
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |