Using negative logic conditions, such as is not exactly equal to, is not one of the following or is not answered, can be very useful when building logic or filters. Negative logic conditions can save you time since, in many cases, negative conditions can accomplish the same result as positive conditions but with fewer steps.
That said, negative logic conditions are more difficult to think about and even harder to explain...On that note, let's give it a shot!
The Efficiency of Negative Logic
Let's say, we ask customers to choose a size, color, and brand in our robot order form.
We have a coupon code that we want to show in a Text / Instruction Element on the next page. The coupon applies to all combinations of robots except short, green, Robopal brand robots.
Below is the required set up to accomplish this using positive logic:
OR
OR
Phew! As you can see, this requires 3 groups, each with 3 conditions and a lot of clicks!
Now, let's see how we can get the same result when using negative logic:
Note that negative logic requires a single grouping of logic with 3 conditions and fewer clicks. Consider how much time you could save!
And and Or Confusion
Notice in the above negative logic example the 3 conditions are joined by the OR operator. Were you thinking it should be AND? This is something almost all of us get wrong when setting up negative logic. Let's take a simpler example and examine why we used OR instead of AND to join our conditions.
Let's say, for example, after respondents answer the following two questions...
...we want to show the below Text / Instruction Element with a coupon code for all blue robots and tall, green robots.
Because the group that we want to exclude is smaller than the group we want to include, it's more efficient to build the logic for the group we want to exclude.
We want to display the above coupon code for all blue robots and for tall green robots. In other words, we want to exclude short, green robots. More often than not we'll end up with the below logic rule; size is not short AND color is not green. Right? WRONG!
Test out the use of the AND operator in a survey.
If you contact our support team, they'll tell you to switch your AND to an OR. You'll switch them, test it out, see that it works and be on your merry way.
Test out the use of the OR operator in a survey.
But wait! This is such a great learning opportunity! WHY does the switch of AND for OR fix this? We said we want to exclude short and robots; this seems like the correct operator! Let's dig a little deeper to understand why it is not.
When setting up negative logic, we recommend setting up a logic chart like the below. This way you can check that your logic is to set up correctly. In our example, we have both short and tall green robots, as well as, short and tall blue robots so we have 4 possible combinations show here in our logic chart.
Let's apply the first logic condition we built above. "Which size robot would you like?" is not Short. This will display the question for all tall size responses. So far so good, the question will display for all tall robots.
Let's apply the second logic condition we built. AND "Which color robot would you like?" is not Green. Because we are using the AND operator, both rules need to be true. So, we add a second red x to the tall x green cell. This means the coupon code will only display for tall, blue robots. This is not at all what we wanted; we just wanted to exclude short, green robots and we ended up excluding everyone but tall, blue robots.
So, let's switch the AND joining our two conditions to an OR like the support hero told us and examine why this works!
Let's apply the first logic condition we built above. "Which size robot would you like?" is not Short. This will then prevent the question from displaying for respondents that select short. Which is a-ok. Showing the coupon code for both green and blue tall robots is what we want.
Next, let's apply our second logic condition. OR "Which color robot would you like?" is not Green. Because both rules do not need to be true at once, we can include all not green robots allowing us to remove the red x from the blue column so we are only excluding short green robots!
Limitations
- Negative logic conditions are not available for questions on the same page. This means when using negative conditions for logic, the source question you are basing the logic on must be on a page prior to the question you are triggering.