Pricing variables are named, computed values that act as intermediate steps in your pricing logic. Instead of writing one large formula, you can break the calculation into smaller, readable pieces — each stored as a variable — and reference them in later formulas or in the total price formula. You configure variables in Calculator Editor → Options & Pricing → Variables.
AREA or MATERIAL_RATE). This becomes the key you reference elsewhere.OPT("KEY") or INPUT("KEY"), pricing tables with TABLE(), and other variables with VAR("KEY").VAR("KEY").| Field | Description |
|---|---|
| Variable name | A unique identifier used to reference this variable in other formulas via VAR("KEY"). |
| Variable formula | A formula expression that computes the variable's value. Can reference options, tables, and other variables. |
AREA, Formula: INPUT("WIDTH") * INPUT("HEIGHT"). Then use it in the total price formula: VAR("AREA") * TABLE("rates", OPT("MATERIAL")).UNIT_WEIGHT, Formula: TABLE("weights", OPT("SIZE")). Reference VAR("UNIT_WEIGHT") in both the pricing formula and the weight calculation formula.