in reply to if statement consolidation

What about
if ($h > 0 and $h <= 16 and $h % 2 == $h < 9) { my $n = int(($h + 1) / 2); $j = $h + $n; $p = 0 + ! ($n % 2); $v = $n + (8 * ($h < 10)); }
Update: "if" condition added.

Replies are listed 'Best First'.
Re^2: if statement consolidation
by moritz (Cardinal) on Jun 28, 2012 at 10:16 UTC
      Thanks, added.