Scripting reference · Nerdamer Language

or

Returns 1 when at least one argument is true, and 0 otherwise.

Arguments are checked left to right, and checking stops at the first true one.

Scripting

or(a, b, ...)

Write it in a script: nerdamer('or(0,0,4)'), or in the Playground.

Parameters

a, b, ...
Two or more conditions or values.

Examples

One argument is nonzero.

or(0,0,4)
// → 1
Open in Playground

Every argument is zero.

or(0,0,0)
// → 0
Open in Playground

Good to know

  • A value is true when it isn't zero. An unknown symbol counts as true; a comparison that can't be decided, such as x>0 for an unknown x, counts as false.

← Back to Nerdamer Scripting