Skip to main content

set

Set script variables to the specified values.

Parameters

No specific parameters. Accepts an object mapping variable names to values.

Variables

Any variable can be set by this method.

Examples

Setting multiple variables

version: 1.0.0
sections:
main:
- set:
vars.variable1: "value1"
variable2: "%{value2 + 1}"
bool_var: true
num_var: 1
float_var: 10.3
obj_var:
foo: bar