CheckFirst
  • CheckFirst
  • Get started
    • Tutorials
      • Yes/No
      • Quiz
      • Constants table
      • Date calculator
      • Complex example
    • Logic Syntax
  • Features
    • Questions
    • Constants
    • Logic
      • Calculator logic
      • Conditional logic
      • Date logic
      • Map constant
      • Results formatting
    • Settings
  • FAQ
    • Full Logic Syntax List
  • Contact Us
  • Updates
Powered by GitBook
On this page
  • What is logic?
  • How to use logic
  • Using questions as input
  • Logic types
  • Referencing blocks
  • Usage

Was this helpful?

  1. Features

Logic

The logic tab is where admin users can use input from questions to calculate or generate a logic result.

PreviousConstantsNextCalculator logic

Last updated 4 years ago

Was this helpful?

What is logic?

Logic is the brain of your checker, where you make calculations and filter a user's answers to your questions to determine their eligibility.

How to use logic

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.

Using questions as input

Each question gives us an input that can be used in the logic tab in various ways.

Logic types

CheckFirst currently offers these types of logic blocks:

Below shows the acceptable inputs and the expected outcome for each logic block.

Logic block

Acceptable inputs

Expected outcome

Calculator

A number

Conditional

  1. A displayed text

  2. A true/false statement

Date

A date in text format

Map constant

A user's chosen constant value number

Referencing blocks

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.

Block type

Reference

Logic block

Letter O references logic blocks

Usage

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.

See and .

Calculator logic
Conditional logic
Date logic
Map constant
constant table references
question references
Only shown logic blocks appear in the results section in preview.