?'&&'
gives the place that you want the longer form:
The longer form is appropriate for programming control-flow and typically
preferred in if clauses.
if
takes a single value. Unfortunately, &&
doesn't give a warning if a vector exceeds length 1 (if
does give a warning) so it's harder to catch such a mistake.
Indeed, you shouldn't be using &&
with vectors of length other than 1.