in reply to Re: variable set to 0 ? 0 : 1
in thread variable set to 0 ? 0 : 1

Set $max to the maximum of $x vs $y:
$max = $x > $y ? $x : $y;

-Blake