Skip to main content
For the full syntax and function catalog, use the original Script reference. Function availability depends on the execution context. Neuron Script is the expression language implemented by Waher.Script. Contracts use it for validation and calculated values; token state machines use it for calculations and actions. JavaScript in an Agent API client is a different language.

Choose the context you need

Available variables and functions depend on the context and runtime. A function in the core language is not automatically permitted by a Neuron’s expression restrictions.

Write your first expression

Calculate a value, validate it, and check the expression locally.

Language reference

Look up names, values, assignment, conditions, and control flow.

Functions and execution context

Check exact function behavior and the scope of a script.

State-machine XML

Connect expressions to events, actions, and persisted values.
Your application continues to use the Agent API. You do not need an administrative Script prompt to author contract expressions.