Variables (brick)
The Variables brick sets one or more variables to a value: text, a number, or other variables.
The value of each variable takes other variables and contact fields, such as {{contact.first_name}}. See Variables.
When to use
Section titled “When to use”Store a choice for later ({{topic}} = billing), copy one value into another, set a flag or a default before a branch, or prepare values for an SMS or an HTTP request.
Settings
Section titled “Settings”| Setting | What it does |
|---|---|
| Variable | An existing variable, or Set new variable |
| Variable value | Text, a number or other variables, such as {{contact.first_name}} |
| Add variable | Sets another variable in the same brick |
Outputs
Section titled “Outputs”| Output | When |
|---|---|
| Processed | The values are set; later bricks see the new values |
Good practice
Section titled “Good practice”For calculations, formatting or several values from one JSON, use JavaScript.
Related
Section titled “Related”Variables, Conditions