A variable stores an intermediate result for the current table row or the current JSON/XML element. Use it when the same calculated value is needed in several rules, conditions, or result fields, or as an intermediate step in calculating another value.
The variable itself is not written to the result file. Only fields that use the variable value are exported.
Where to Enable It
Table editor. Open the result column settings and enable Make this column a variable.
XML editor. Open the node settings and enable Make this node a variable.
JSON editor. Open the node settings and enable Make this node a variable.
The root JSON/XML node cannot be a variable.
Variable Number
The number defines calculation order. Variable 1 is calculated before variable 2. If one variable uses another one, the first variable must have a lower number.
If you enter a number that is already used, Eofferix swaps the variable numbers. The comment is only for the user: it explains what the variable stores.
How to Use It
- Select the variable in a rule check field when the rule must check the calculated value.
- Select the variable in a rule value or template when it must be inserted into the result.
- Use the variable in export conditions when a field or element should be exported only for a calculated value.
Checking a Variable Against a Range
To run a rule only when a calculated value falls within a numeric range:
- Select the required variable in the first rule field.
- Select the is between condition.
- Enter the lower and upper bounds in the single value field, separated by a hyphen:
58-590or591,5-1032.8.
Both endpoints are included. A decimal part may use either a dot or a comma, including different separators in the same range. Enter the lower bound first and the upper bound second: malformed ranges and ranges whose upper bound is lower than the lower bound do not match.
The check works the same way in the table, JSON, and XML editors: in the snapshot and when a transformation or import runs.