Skip to main content

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