Next: , Previous: Data structures, Up: Octave Features


4.4 Short-circuit boolean operators

Octave's ‘&&’ and ‘||’ logical operators are evaluated in a short-circuit fashion (like the corresponding operators in the C language) and work differently than the element by element operators ‘&’ and ‘|’.