Logical Operators

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

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

Example

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

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