Source: https://mindstamp.com/help/how-can-i-create-a-video-with-conditional-logic
Generated from the Help Center records: 2026-10-05

# How do I show or hide an interaction with conditional logic?

Topic: [Interactions and logic](https://mindstamp.com/help/interactions) · Updated: 2026-09-25

## Short answer

Conditional logic shows or hides one interaction based on the value of a variable. Open the interaction, go to **Variables & Logic**, turn on **Conditional Logic**, and set a rule such as **Show if** company_size **Is a number greater than** 100. Conditional logic is on Pro and higher plans.

## Steps

1. Set the variable first. For example, ask “How many people work at your company?” and store the answer in the variable company_size.
2. Open the interaction that should appear or disappear.
3. Open **Variables & Logic** and turn on **Conditional Logic**. On a question, open the **Conditional Logic** section.
4. Choose **Show if** or **Hide if**.
5. Choose the variable, choose the condition, and enter the value to compare.
6. To test two variables, turn on **Add Second Condition** and choose **AND** or **OR**.
7. Save, then test in **Preview** with each value you expect.

![Variables & Logic section of a Mindstamp button with Conditional Logic on and the rule Show if interest Equals pricing](https://cdn.mindstamp.com/website2026/help/conditional-logic-show-if.webp)

_Turn on Conditional Logic, then build the rule: Show if, a variable, a comparison and a value._

![Mindstamp Conditional Logic with Add Second Condition turned on, the join operator set to AND, and fields for the second rule](https://cdn.mindstamp.com/website2026/help/conditional-logic-second-condition.webp)

_Turn on Add Second Condition, join the rules with AND or OR, then set the second rule._

## Conditions you can use

- **Equals** and **Does not equal**
- **Exists** and **Does not exist**
- **Is a number less than** and **Is a number greater than**
- **Contains** and **Does not contain**
- **Matches Regex**

## Example: one offer for each company size

You have three buttons: Small company offers, Medium company offers, and Large company offers. Each one gets its own rule:

- Small: **Show if** company_size **Is a number less than** 10.
- Medium: **Show if** company_size **Is a number greater than** 9 **AND** company_size **Is a number less than** 100.
- Large: **Show if** company_size **Is a number greater than** 99.

## How values are compared

- **Equals** and **Contains** ignore capital letters, so “Manager” matches “manager”. Spaces still count.
- Number conditions are true only when both values are numbers. “Less than” and “greater than” do not include the value itself.
- **Exists** is true when the variable has any value.
- An interaction can use two conditions at most.
- The player checks the rules again each time a variable changes, so an interaction can appear as soon as the viewer answers.

## Test in Preview, not in the editor

The editor shows every interaction, and it does not set variables. Open **Preview** to see the video as a viewer does. To test a value quickly, add it to the share link, for example ?company_size=50.

## Plan

Conditional logic is on Pro and higher plans. The variables it reads are on Core and higher. The 14-day free trial includes both, so you can build and test before you choose a plan.

## Go further

- [Conditional logic](https://mindstamp.com/features/conditional-logic)
- [Logic tutorial](https://mindstamp.com/tutorials/logic)

## Related answers

- [How do I personalize a video with variables?](https://mindstamp.com/help/how-do-i-use-personalization-and-dynamic-variables-on-mindstamp)
- [How do I create personalized video navigation?](https://mindstamp.com/help/how-to-create-a-video-with-dynamic-personalized-navigation)
- [How do I add a “Try again” button with conditional logic?](https://mindstamp.com/help/how-to-add-try-it-again-buttons-using-conditional-logic-to-drive-key-points)
- [Which plan includes variables and personalization?](https://mindstamp.com/help/what-plan-do-i-need-to-be-on-to-use-mindstamp-variables-personalization-and-dynamic-content)

---

Need more help? [Contact Mindstamp](https://mindstamp.com/contact) · [Help Center](https://mindstamp.com/help) · [All Help Center articles as JSON](https://mindstamp.com/help-feed/index.json)
