/Variables

Variables

What are variables?#

Variables track running values across the form — totals, scores, computed strings. You reference them in labels with @name and they update live as the respondent fills the form.

Rules#

Each variable owns an ordered list of rules. A rule has a When gate (a full nested AND/OR condition tree, or "Always") and a Do action that applies an operator (+ - × ÷ =) to a source (a field's answer, another variable, or a constant).

How variables are calculated#

Halloform topologically sorts variables by dependency — anything a variable references is always evaluated first. If you build a cycle accidentally, the affected variables get an amber banner so you can untangle it.