Logic
The logic tab is where admin users can use input from questions to calculate or generate a logic result.
Last updated
The logic tab is where admin users can use input from questions to calculate or generate a logic result.
Last updated
Logic is the brain of your checker, where you make calculations and filter a user's answers to your questions to determine their eligibility.
Conceptually, there are 2 ways to use logic blocks, as intermediate logic or displayed logic.
Intermediate logic blocks are outcomes that you don’t want users to see, they are used as input/calculation for other logic blocks. Hidelogic blocks to remove them from the results section.
Displayed logic are logic blocks that you want to show to the user as a final outcome. Showthe logic blocks that you want to display in the results section.
See the example below of how the blocks look like in the logic tab vs in preview.
Each question gives us an input that can be used in the logic tab in various ways.
CheckFirst currently offers these types of logic blocks:
Below shows the acceptable inputs and the expected outcome for each logic block.
Logic blocks are tied to a symbolic letter for its reference, as well as a number. In a logic block, you can refer to other logic blocks.
See question references and constant table references.
Type in the block's letter and number. For example: N1
, where N
is the question type and 1
is the number of the block.
Pro tip: Type in the @ key to get a dropdown of questions, tables, or result blocks to choose from. Filter the dropdown by typing in a letter.
Numeric questions return a numeric input Radio questions return a single text input Dropdown lists return multiple text inputs Checkbox questions return multiple text inputs Date questions return a date formatted text input Constant tables must be mapped to a radio question using themap constant logic block. Use themap constant logic block to return the constant value of the user's choice. Read below for more.
Logic block
Acceptable inputs
Expected outcome
Calculator
A number
Conditional
A displayed text
A true/false statement
Date
A date in text format
Map constant
A user's chosen constant value number
Block type
Reference
Logic block
Letter O references logic blocks