Short-circuit boolean operators Next: Previous: Data structures Up: Octave Features



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 |.