# Buy button condition feature AND and OR

**URL:** <https://community.glideapps.com/t/buy-button-condition-feature-and-and-or/8819>\
**Category:** Ask for Help\
**Created:** [May 9, 2020, 9:31pm UTC](https://community.glideapps.com/t/buy-button-condition-feature-and-and-or/8819 "2020-05-09T21:31:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Amanda\_Peterson](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/amanda_peterson/32/6362_2.png) [@Amanda\_Peterson](https://community.glideapps.com/u/Amanda_Peterson)\
**Post date:** [May 9, 2020, 9:31pm UTC](https://community.glideapps.com/t/buy-button-condition-feature-and-and-or/8819/1 "2020-05-09T21:31:22Z")

</div>

For buy button features visibility – I want to create conditions using both AND and OR. Is that possible?

Condition 1 AND Condition 2 OR Condition 3

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [May 9, 2020, 9:53pm UTC](https://community.glideapps.com/t/buy-button-condition-feature-and-and-or/8819/2 "2020-05-09T21:53:31Z")

</div>

unfortunately no. You’ll have to create a template of the values for condition 1 and condition 2.

There’s more here if you read from this post on down.

> [@BUG in visibility](https://community.glideapps.com/t/bug-in-visibility/3831/14):
>
> It’s kind of limiting, but I think that’s how it’s designed right now. How are you attempting to check your conditions: (When Color is Blue AND When Switch1 is TRUE) OR When Order isn’t EMPTY It is it like this: When Color is Blue AND (When Switch1 is TRUE OR When Order isn’t EMPTY) I suppose it’s limited to only ANDs or ORs because there is no way to differentiate order of operations with parenthesis. In programming languages, the OR always takes priority it it’s True and no paren…

---

<div class="post-metadata">

**Author:** ![sardamit](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/sardamit/32/263_2.png) [@sardamit](https://community.glideapps.com/u/sardamit)\
**Post date:** [May 9, 2020, 10:14pm UTC](https://community.glideapps.com/t/buy-button-condition-feature-and-and-or/8819/3 "2020-05-09T22:14:39Z")

</div>

You can create 2 buttons: one for each condition, and at the same time a negation of the other condition.
