Scripting reference · Nerdamer Language

return

Returns a value from the current symbolic function or outer scripting block.

Inside a parser-defined symbolic function, return stops evaluation of the current function body and supplies its value. The outermost scripting block can also consume an escaping return.

Examples

These examples use Nerdamer Scripting.

Stop evaluation and return 7.

block(return(7),9)
// → 7

Interfaces

The same operation is available through the interfaces below.

Nerdamer Scripting

Nerdamer Scripting

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

return(arg1)

← Back to Nerdamer Scripting