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.
Last updated
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.
Last updated
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.
This template can be accessed during checker creation.
We want to check whether an individual is eligible/qualifies for temporary relief under the COVID-19 (Temporary Measures) Act.
In the questions tab
, useradio questions to set your Yes/No questions.
Here's what it should look like:
Add additional conditions
Change condition type to OR
Set the conditions below:
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:
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:
Let's Save draft
then Preview
our checker. View the different results below:
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:
A user selects YES
for all questions = Eligible
A user selects NO
for 1 or more questions = Ineligible
This conditions for this checker could have also be set to:
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:
In the logic tab
, we want to set the condition so that if 'No' is selected for any one question, the user is ineligible for the relief. We can set this condition with anIF/ELSE logic block.
Create anIF/ELSE logic block
Now that we have our conditions, we need to set the outcome if these conditions are fulfilled/ not fulfilled. We can currently do this from the THEN/ELSE inputs in the IF/ELSE logic block.