Skip to main content

https://mintcdn.com/xano-997cb9ee/l34pjCw6QluB5NGI/images/icons/xs_temp.svg?fit=max&auto=format&n=l34pjCw6QluB5NGI&q=85&s=a93a487e986548b85069518b76869a5f 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"
}

https://mintcdn.com/xano-997cb9ee/l34pjCw6QluB5NGI/images/icons/xs_temp.svg?fit=max&auto=format&n=l34pjCw6QluB5NGI&q=85&s=a93a487e986548b85069518b76869a5f 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"
}