Logical Operators

Logical operators include and, or, and not, for example.

  • & (and)
  • | (or)
  • ~ (not)
  • && (short circuit and)
  • || (short circuit or)

Examples

1 & 2 
[4 7 2] || [0 2 6]

More information is located in the Logical Operators section of the Operator Description (tables) topic.