# Why isn't there a if-else conditional on Workflows?

**URL:** <https://community.weweb.io/t/why-isnt-there-a-if-else-conditional-on-workflows/8354>\
**Category:** Ask us anything\
**Tags:** design\
**Created:** [April 29, 2024, 5:00pm UTC](https://community.weweb.io/t/why-isnt-there-a-if-else-conditional-on-workflows/8354 "2024-04-29T17:00:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cataleen](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/cataleen/32/8830_2.png) [@cataleen](https://community.weweb.io/u/cataleen)\
**Post date:** [April 29, 2024, 5:00pm UTC](https://community.weweb.io/t/why-isnt-there-a-if-else-conditional-on-workflows/8354/1 "2024-04-29T17:00:14Z")

</div>

It’s disappointing that workflows don’t support if-else conditions or differentiate between first and subsequent clicks. I’m attempting to build a custom accordion. I can adjust the variables to change the height on the first click, but I’m unsure how to modify them for the second click on the same accordion.

---

<div class="post-metadata">

**Author:** ![Broberto](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/broberto/32/5918_2.png) [@Broberto](https://community.weweb.io/u/Broberto)\
**Post date:** [April 29, 2024, 5:27pm UTC](https://community.weweb.io/t/why-isnt-there-a-if-else-conditional-on-workflows/8354/2 "2024-04-29T17:27:48Z")

</div>

You can use the multi option split with one case and refer to the default case as else

---

<div class="post-metadata">

**Author:** ![cataleen](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/cataleen/32/8830_2.png) [@cataleen](https://community.weweb.io/u/cataleen)\
**Post date:** [April 30, 2024, 7:02pm UTC](https://community.weweb.io/t/why-isnt-there-a-if-else-conditional-on-workflows/8354/3 "2024-04-30T19:02:52Z")

</div>

Awesome! I was able to figure it out!
