8.13 Boolean Expressions

  1. op Expr
  2. Expr1 op Expr2
OperatorDescription
notUnary logical NOT
andLogical AND
orLogical OR
xorLogical XOR

Table 8.3: Logical Operators.

Examples:

  1. 1> not true.
  2. false
  3. 2> true and false.
  4. false
  5. 3> true xor false.
  6. true
  7. 4> true or garbage.
  8. ** exception error: bad argument
  9. in operator or/2
  10. called as true or garbage