# $z is $x divided by $y, unless $y is zero, in which case $z should be zero too if ( $y == 0 ) { $z = 0; } else { $z = $x / $y; }