in reply to condensing code
$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;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: condensing code
by ikegami (Patriarch) on Sep 08, 2006 at 18:15 UTC | |
|
Re^2: condensing code
by Anonymous Monk on Sep 08, 2006 at 17:50 UTC | |
by jZed (Prior) on Sep 08, 2006 at 17:53 UTC |