Inline Calculations

An inline calculation embeds a formula directly in your text. You see the formula while editing; respondents see the computed result.

For example, a paragraph containing Your total: ⌈@price * @qty⌉ per month displays as “Your total: 150 per month” when a respondent fills in the fields.

Adding a calculation

Type /calculate (also matches /calc, /formula, /math) inside a text block to insert a calculation inline. You can also add one from the + menu — it’s listed as Calculate under Content.

Writing the formula

Inline calculations use the same formula syntax as variables — @ references, arithmetic operators, numbers, and functions. The formula is evaluated at runtime using the respondent’s current answers and variable values.

Where calculations can appear

  • Paragraphs
  • Headings
  • Field labels

They cannot appear inside variables or option labels.

Tips

  • Inline calculations are great for showing totals, scores, or personalized summaries without needing a separate variable
  • For complex computations, define a variable first and then reference it in the calculation — keeps things readable
  • If the formula can’t be parsed, @ references are still replaced with their values as plain text