How do I add a math formula?
Quiz Kit allows you to add math formulas to any field of questions and results pages.
What are the rules?
- Math formula should be wrapped in "%" characters. Example: %1+1% - will return 2
- You can pass customers answers to a formula. Example: %1+{2}% - will return 1 + customer's answer from question. Note: you can use this only for numeric answers without any text.
- You can use total number of points earned by your customer(if they are using points logic). Example: %42 * ({1} + {points})% - will return 42 * (answer from Q1 + total number of points earned by customer)
- If any text symbols will be passed to a formula it won't work and return nothing.