Ask ProtoPie ∙ 2 min read
How to Use Conditions In ProtoPie
ProtoPie Expert Jeff Clarke shares best practices on how to use conditions and create logic-empowered animations in ProtoPie
![ProtoPie](https://cdn.sanity.io/images/qyzm5ged/production/9bada9eb15c782049119142539053e25e8efde30-240x240.png/protopie-profile-picture.png)
ProtoPieDecember 21, 2022
![ask protopie session about using conditions in protopie](https://cdn.sanity.io/images/qyzm5ged/production/837c50f424f75eda3bf00037440b55f573553941-2138x1200.jpg/Ask-ProtoPie---Conditions.jpg)
Conditional triggers activate interactions based on specific conditions; for example, when a prototype is run, a certain string of text is received or a layer is moved to a specific location. In ProtoPie, conditions activate responses based on the following requirements: chain, range, start, and detect. This Ask ProtoPie session focuses on how to use conditions to create logic-empowered animations in ProtoPie.
![Toggle button using an if/then conditional statement.](https://cdn.sanity.io/images/qyzm5ged/production/5465c0f40df1cc4e17d52e0dd4ba7d5e170e94b5-877x742.gif/button-tutorial.gif)
Toggle button using an if/then conditional statement.
What you’ll learn
- What is a ‘Condition’ in ProtoPie?
- Demo 1: How to animate Toggle Button States with Conditions in ProtoPie
- Demo 2: How to animate a Field Validation with Conditions in ProtoPie
- Demo 3: How to pause and resume Videos with Variables and Conditions in ProtoPie
Learn more
ProtoPie School: ProtoPie’s free learning content designed to help you build your prototyping expertise. Enroll for free.
ProtoPie Gallery: Share what you made in ProtoPie.