# Adding CONDITIONS to ACTIONS

**URL:** <https://community.glideapps.com/t/adding-conditions-to-actions/11657>\
**Category:** Ask for Help\
**Created:** [June 29, 2020, 7:07am UTC](https://community.glideapps.com/t/adding-conditions-to-actions/11657 "2020-06-29T07:07:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![adelhammoud](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/adelhammoud/32/5587_2.png) [@adelhammoud](https://community.glideapps.com/u/adelhammoud)\
**Post date:** [June 29, 2020, 7:07am UTC](https://community.glideapps.com/t/adding-conditions-to-actions/11657/1 "2020-06-29T07:07:53Z")

</div>

It will help if we can set conditions (e.g. IF-THEN-ELSE) to determine required action based on condition.  
This way, we don’t need to duplicate the component.

Example, if an HR manager viewing an employee record (which has set of components), the action can be “View Details” where if the viewer is another employee, we want the action to be “Send Email”

Any idea how if this feature exists or in the roadmap (as I couldn’t find any during my search)?

![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/2X/e/ea4757ee99ee0399c9bea063bcbda476ec9837c3.png)

---

<div class="post-metadata">

**Author:** ![Sandro\_Brito](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/sandro_brito/32/552_2.png) [@Sandro\_Brito](https://community.glideapps.com/u/Sandro_Brito)\
**Post date:** [June 29, 2020, 7:10am UTC](https://community.glideapps.com/t/adding-conditions-to-actions/11657/2 "2020-06-29T07:10:40Z")

</div>

A way to do it would be to have different buttons for each condition and use the visibility to turn it on and off depending on the conditional.

---

<div class="post-metadata">

**Author:** ![adelhammoud](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/adelhammoud/32/5587_2.png) [@adelhammoud](https://community.glideapps.com/u/adelhammoud)\
**Post date:** [June 30, 2020, 11:18am UTC](https://community.glideapps.com/t/adding-conditions-to-actions/11657/3 "2020-06-30T11:18:22Z")

</div>

I have many components across the App and this will require replicate the need to create buttons all over. If, however, we have this capability within glide, it will save us great sum of development time and future maintenance.
