Open mcol opened 2 years ago
The single-character operators (& and |) are for elementwise operations, but if statements don't work on vectors. Using the longer form has also the advantage of not evaluating the second operand if the result is known after evaluating the first.
&
|
if
The single-character operators (
&
and|
) are for elementwise operations, butif
statements don't work on vectors. Using the longer form has also the advantage of not evaluating the second operand if the result is known after evaluating the first.