aboutsummaryrefslogtreecommitdiff
path: root/docs/yaml/functions/set_variable.yaml
blob: e9b5db333b97d805d764da5ba0aaed9daad6fd8e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
name: set_variable
returns: void
description: |
  Assigns a value to the given variable name. Calling
  `set_variable('foo', bar)` is equivalent to `foo = bar`.

  *(since 0.46.1)* The `value` parameter can be an array type.

arg_flattening: false

posargs:
  variable_name:
    type: str
    description: The name of the variable to set

  value:
    type: any
    description: The value to set the variable to