Skip to main content

/images/icons/xs_temp.svg Create Variable

var variableName {
  value = "Hello world"
}
ParameterPurposeExample
variableNameThis is the name of the variable you want to create.variableName
valueThis is what you want to store in the variable. For complex data types like arrays or objects, make sure to include a json_decode filter.
value = "Hello world"
value = 1234
value = "[1,2,3,4,5]"|json_decode
var variableName {
  value = "Hello world"
}

/images/icons/xs_temp.svg Update Variable

var.update $variableName {
  value = "Goodbye world"
}
ParameterPurposeExample
$variableNameThis is the name of the variable you want to update. $variableName
valueThis is what you want to store in the variable. For complex data types like arrays or objects, make sure to include a json_decode filter.
value = "Hello world"
value = 1234
value = "[1,2,3,4,5]"|json_decode
var.update $variableName {
  value = "Goodbye world"
}
I