Run JavaScript
There are several ways to run JavaScript, depending on your needs.
Inject
Everything within ${}
blocks is evaluated as JavaScript, allowing you to insert dynamically computed values into any other Maestro command.
Run file
If you want to run a JavaScript file you can use the runScript command:
pagerunScriptPassing parameters
runScript
accepts env
parameters, in the same way as runFlow
does (see Nested Flows).
Inline
For very simple computations (like the one above), creating a new file might be cumbersome. For this use case you can use the evalScript
command:
Last updated