Skip to main content

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