But I think you mean
if ($num || $type) { # (|| rather than &&) something(); } [download]
In reply to Re^2: logical non-short-circuit operators by RMGir in thread logical non-short-circuit operators by december