Nerdamer
Documentation Playground Showcase GitHub
DocumentationPlaygroundShowcaseGitHub
OverviewInstall & first stepsWays to use NerdamerWhat’s newMigrating from 1.x
Writing expressionsReserved namesScriptingUser-defined functionsResults & outputSets & solution setsAssumptionsSettingsWarningsConnecting functionsScripting examplesJavaScript examples
FunctionsThe nerdamer objectTypes & import paths
Contributing →
Documentation/Nerdamer Scripting
Scripting reference · Nerdamer Language

iserror

Returns 1 when an expression throws an error, and 0 otherwise.

Scripting

iserror(expression)

Write it in a script: nerdamer('iserror(5)'), or in the Playground.

Parameters

expression
The expression to test.

Examples

No error.

iserror(5)
// → 0
Open in Playground

0/0 throws an error.

iserror(0/0)
// → 1
Open in Playground

Good to know

  • return, break and continue aren't counted as errors.

← Back to Nerdamer Scripting

Nerdamer

Symbolic mathematics for JavaScript and TypeScript.

DocumentationNerdamer NotationNerdamer ScriptingThe nerdamer objectJavaScript / TypeScript API
ProjectPlaygroundReferences & citationsContributingGitHub
Copyright © 2013–2026 Martin Donk · Licensed under the Apache License 2.0