Constants
The constants tab is where you can map numbers to options of a radio question. This is useful when you want to make a calculation based off a user's choice.
What are constants?
Constants are numeric values that can be referred to with its reference.
Constant tables can be used to map multiple constants to options of a radio question. This is done by mapping each option to the reference of the constant.
Constants are not needed to make a checker. You can make a checker without using the Constants Tab.
To ensure that your constant table maps properly, ensure that all radio options are exactly the same as the constant table references.
An analogy
If a customer went to a fruits stall and asked the stall assistant "How much does this banana cost?", the stall assistant would check the prices on a piece of paper that says:
Today's fruit prices Apple $1 Banana $1.50 Orange $1.20
The stall assistant looks up the price of Banana
and finds 1.50 dollars
. They can then tell the customer that bananas are $1.50 each, and can help ring up their total bill depending on how many bananas the customer took.
Here, the stall assistant is our checker, and the piece of paper –Today's fruit prices – is a Constant table
. See the use case example below.
Use case example
Context: Our grocery clerk wants to calculate the total cost of a customer's groceries from a fruit stall. They need to find out which fruit the customer has taken, and multiply the price of that fruit by the number of pieces they took.
[Price of fruit] x [Number of pieces] = Total cost
Note: Options and references must have the same capitalisation. If a radio option is Apple, but the constant reference is apple, they are unable to be mapped.
This can be typed as O1*N2
.
Let's Save draft
and check it in preview.
Constant table reference
Block type |
| Reference |
Letter T references constant tables |
Last updated