Yes/No

This checker asks users to click through a series of Yes/No questions. Any answer of 'No' will return an 'Ineligible' result. This example is modelled after the MLAW COVID Relief Eligibility Check.

When should I use this template?

When you have a series of Yes/No questions, with simple conditions of eligibility based on the number

Pro tip: When thinking about how to build your checker logic, think about the bare minimum conditions to either pass someone, or fail someone. This will make it easier to structure your logic.

Template walkthrough

This template can be accessed during checker creation.

Context

We want to check whether an individual is eligible/qualifies for temporary relief under the COVID-19 (Temporary Measures) Act.

Step 1: Set questions

Step 2: Set conditions

  1. Add additional conditions

  2. Change condition type to OR

  3. Set the conditions below:

IF R2=="No"
OR R3=="No"
OR R4=="No"
OR R5=="No"
OR R6=="No"

Here, R2 to R6 are our Yes/No questions, and we use the == operator to equate each question's answer to the exact text "No".

Plain text

Logic

If the option selected for R2 is "No",

IF R2 == "No"

or the the option selected for R3 is "No"

OR R3 == "No"

Here's what it should look like:

Step 3: Set results

If these conditions are met, meaning if a user selects No for any question, we want to show a text result to tell them they are ineligible.

"Based on your inputs, it appears that you / your business would NOT qualify for temporary relief under the Act."

Hence, we put this in the THEN input box.

If these conditions are not met, meaning that a user did not select No for any question (i.e. they selected Yes for all questions), we want to show a text result to tell them they are eligible.

"Based on your inputs, it appears that you / your business would qualify for temporary relief under the Act."

Since the conditions are not met, we put this in the ELSE input box.

Plain text

Logic

If these conditions are met, then show "This text"

THEN "This text"

Else if these conditions are not met, then show this "This text"

ELSE "This text"

Remember to put quotes (") around your text to display it as plain text in the results section.

Here's what it should look like:

Step 4: Preview

Let's Save draft then Preview our checker. View the different results below:

Next Step: Increasing complexity

Because there are only 2 options for each question, there are only 2 ways to interpret the bare minimum conditions to check is a user is eligible or ineligible:

  1. A user selects YES for all questions = Eligible

  2. A user selects NO for 1 or more questions = Ineligible

This conditions for this checker could have also be set to:

IF R2=="Yes"
AND R3=="Yes"
AND R4=="Yes"
AND R5=="Yes"
AND R6=="Yes"

However, if your questions have 3 or more options, it may be easier to make logic for the conditions of failure, rather than the conditions of success.

For checkers with a threshold on the number of "No"s before ineligibility, we'll have to count how many "No"s were selected, and see if that passes our threshold.

For example, if you are only ineligible if you select more than 2 "No"s, the IF statement formula would be as below:

(countif([R2,R3,R4,R5,R6],"No"))>2

Last updated