What is Conditional Logic? How can I show or hide interactions using CL?
What is Conditional Logic?
Conditional Logic is a very powerful feature that allows you to to show or hide individual interactions based on the value of one or more Variables.
Variables are pieces of information that can be either collected or passed in to the video.
How is it used?
For example, you might ask a question "How large is your company?" and store the answer in the company_size variable.
Later on in the video, you have three buttons titled Small Company Offers, Medium Company Offers, and Large Company Offers, which link to your website and share details of the services you offer to Small, Medium and Large Companies, respectively.
However, you only want to show one of these buttons at a time, since a company can only be small, large, or medium. This is where Conditional Logic comes in!
Once the viewer responds to the question, their answer will be available for Personalization and Conditional Logic throughout the rest of the video. You can then use this variable in the Conditional Logic for each button:
We only want to show the Small Company Offers button if they have less than 10 people in their company. Therefore, the Conditional Logic for that button would be:
We only want to show the Medium Company Offers button if they have more than 10 but less than 100 people in their company. Therefore, the Conditional Logic for that button would be:
Finally, we would only want to show the Large Company Offer if the company_size is a number greater than 100:
What are types of conditional statements exist?
You can conditionally Show or Hide an interaction based on whether a specific variable:
Does not exist
Does not equal
Number less than
Number greater than
Does not contain
Updated on: 03/01/2024