In InterformNG2 there are 4 kind of variables:
Please notice, that there is an overlap between the variables in the designer and the workflow variables. So if you create a workflow variable and a designer variable with the same name, then the value is shared. That can be used e.g. to transfer information between the workflow and a template. In the designer you can use the workflow variable element to test how the template would react to a specific value setup in the workflow. A value set on a variable in the designer template, can also be used in the workflow after calling the template.
Variables are referenced in Xpath expressions with a preceding dollar sign ($) e.g. $Myvariable.

Limitation regarding workflow variables and booleans
Please notice, that there is a limitation when it comes to workflow variables and booleans (true() and false()). The workflow variables are handled as strings, when it contains a boolean.
This example will e.g. NOT WORK:
We try to use a workflow variable with a boolean to indicate if a logo should be included or not:
- and we combine this with this template:
Then we STILL get the logo in the output - even though the variable, InsertLogo is false.
The reason is, that if we use a workflow variable as a condition, then the workflow variable is handled like a string and this does not work....
Instead you should define the workflow variable as a string as below:
- and then compare the workflow variable with a string in the template:
Variables can be used all over InterformNG2: