Formulas are at the core of ConvertCalculator. They can be used in formula-result-elements, variables, conditional show/hide logic, and numerous other features.
Get started with formulas
Formulas are at the core of ConvertCalculator. They can be used in formula-result-elements, variables, conditional show/hide logic, and numerous other features.
A formula can have the following components:
1, 12, 1.5, 20.5
)+, -, *, /, ^
)QA, QB, QC
)VA, VB, VC
)While numbers and operators are self-explanatory, question values are user-inputted responses based on values assigned in calculator questions. For example, when asking about "width" or "finish", you can assign values to these inputs and use them to calculate outcomes like price or savings.
An example of a simple formula is this:
FSQA * 100 + 100
In this formula, we multiply the value of Question A by 100 and add 100. When a user changes the value of QA
(for example, by sliding the range slider), the value of the formula changes automatically.
Your formula syntax must follow certain 'rules' to successfully calculate outcomes. The following scenarios will generate errors in your formula:
1,1
or 1,000.54
) will NOT work..76
) will NOT work.=
before a formula causes the formula to throw an ERROR.Functions can make your formulas even more powerful. A function is an expression that calculates a value. A function can have input arguments, and it returns an output. The IF function
is a perfect example of a function that can be used inside a formula:
IF(QA > 50, QA * 2, 0)
Learn more about formulas in one of the following articles