Arithmetic Expressions

Perform calculations using variables.

Usage

  • Use {var1 + var2} to add, subtract, multiply, or divide variables
  • Supports parentheses for complex operations
  • Can be used in question text, page text, or computed variables

Example

# Budget Calculator
Q: Monthly rent
NUMBER
VARIABLE: rent

Q: Monthly food
NUMBER
VARIABLE: food

Q: Monthly transport
NUMBER
VARIABLE: transport

# Summary
Your monthly expenses:
- Rent: {rent}
- Food: {food}
- Transport: {transport}
- **Total: {rent + food + transport}**

Budget Calculator

Monthly rent

Monthly food

Monthly transport