or


or(expr, ...)
      

Return the value of the first expression that evaluates to a value other than false. If no arguments are present, return false. Otherwise, each expression is evaluated until one that returns a non-false value.

Note that or is implemented as a macro. So it will evaluate its arguments only if that is required to get the final result.

Examples:


let (x = 3) or(x < 2, x > 4)
// false

let (x = 5) or(x < 2, x > 4)
// true

or(false, 1, 2, 3)
// 1
      

Also see:

and
not


Core Module Index | Contents