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.