Numscript
Requires flag: experimental-mid-script-function-call
This is a feature of the experimental Numscript interpreter. To run it through the API, set runtime: experimental-interpreter in the transaction request body (the default is machine) and enable the relevant feature flag. See Selecting an Interpreter for per-feature availability.
Call functions like balance() directly in variable declarations, and use arithmetic expressions in the vars block.
Function calls in vars#
Without this feature, balance() can only be used inline. With it, you can capture the result in a variable and reference it multiple times.