if ($num || $type) { # (|| rather than &&) something(); }