Scripting reference · Nerdamer Language

iserror

Returns 1 when evaluating an expression throws an ordinary error and 0 otherwise.

The expression is evaluated lazily. Parser control-flow signals are allowed to continue to their enclosing scripting construct instead of being reported as ordinary errors.

Examples

These examples use Nerdamer Scripting.

A successful expression is not an error.

iserror(5)
// → 0

Detect an evaluation error.

iserror(0/0)
// → 1

Interfaces

The same operation is available through the interfaces below.

Nerdamer Scripting

Nerdamer Scripting

Use this form in Nerdamer Scripting input passed to nerdamer(...).

iserror(arg1)

← Back to Nerdamer Scripting