This functionality is only available on paid plans. Check our plans here.
Variables allow you specify values to reuse across all your rules, without having to repeat that value multiple times, making your rules cleaner and quicker to modify. You can access the variables panel from the tweak toolbar.
To reference a variable use the following syntax:
Let's for example use the above specified variable to interpolate it with some JSON:
Variables can be accessed from the top toolbar, and they offer you a simple table where you can specify a variable name and its value. Variables can be referenced across all editors:
Only alphanumerical and _ (underscore) are considered valid characters for the variable name.
It's possible to have numerical or boolean values in a given JSON payload. Let's say you want to have a numerical variable
timestamp, and its value is
123. When interpolating the variable simply remove the double quotes around the
"name" "John Doe",
The JSON editor will throw syntax errors, but that's ok, you can still proceed and tweak will render the JSON with the numerical value.