Calculations and formulas
Working out a number from the answers, live.
What you can write
Arithmetic (+, -, *, /), comparisons, and conditionals. You can reference any earlier question by its reference and any variable by its name.
A question's reference is shown in its settings panel; it's the short name like `units` or `hours`, not the question text.
It's a formula language, not code. Nothing you type is executed as a program, which is why this is available to everyone rather than gated behind a trust decision.
An example
`units * 100 + (delivery == true ? 45 : 0)` multiplies a number question by a rate and adds a delivery charge when a yes/no question is yes.
Where the result goes
A calculated value block displays the result and stores it with the response. Turn off display to store it without showing it.