# Can visibility logic in Glide repeat more than once AND and OR?

**URL:** https://community.glideapps.com/t/can-visibility-logic-in-glide-repeat-more-than-once-and-and-or/36234
**Category:** Ask for Help
**Created:** [December 22, 2021, 3:52pm UTC](https://community.glideapps.com/t/can-visibility-logic-in-glide-repeat-more-than-once-and-and-or/36234 "2021-12-22T15:52:39Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![jabid](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jabid/32/33391_2.png) [@jabid](https://community.glideapps.com/u/jabid)
#### Post date: [December 22, 2021, 3:52pm UTC](https://community.glideapps.com/t/can-visibility-logic-in-glide-repeat-more-than-once-and-and-or/36234/1 "2021-12-22T15:52:39Z")

</div>

I’m not sure if Glide can fix this … I have a button on the Details page that the user can click. My problem is with the visibility of this button. Its visibility is linked to 4 conditions. My problem is that the first three conditions: A, B and C are linked by an AND, and the last, D is linked to C by an OR. Is it possible to solve this problem, which looks like this A AND B AND (C OR D)?

---

<div class="post-metadata">

### Author: ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)
#### Post date: [December 22, 2021, 4:01pm UTC](https://community.glideapps.com/t/can-visibility-logic-in-glide-repeat-more-than-once-and-and-or/36234/2 "2021-12-22T16:01:02Z")

</div>

Use an if-then-else column:

- If not A, then empty
- If not B, then empty
- If C, then true
- If D, then true
- Else empty

Then use that if-then-else column to drive your component visibility (ie. show the component when it’s true)

---

<div class="post-metadata">

### Author: ![jabid](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jabid/32/33391_2.png) [@jabid](https://community.glideapps.com/u/jabid)
#### Post date: [December 22, 2021, 4:02pm UTC](https://community.glideapps.com/t/can-visibility-logic-in-glide-repeat-more-than-once-and-and-or/36234/3 "2021-12-22T16:02:59Z")

</div>

Thank you… I will try this…

---

<div class="post-metadata">

### Author: ![jabid](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jabid/32/33391_2.png) [@jabid](https://community.glideapps.com/u/jabid)
#### Post date: [December 23, 2021, 3:45pm UTC](https://community.glideapps.com/t/can-visibility-logic-in-glide-repeat-more-than-once-and-and-or/36234/4 "2021-12-23T15:45:25Z")

</div>

I figured this out with this logic.

1. Create an ITE Column for visibility logic we call it E-column
2. For the A-column and B-column it is **IF** xxxxx **Then** Whatever you want (of course you have 2 IF)
3. For C and D, since they depend one to each other IF C-column xxxx Then D-column true
4. Then in Visibility component conditions, you have only 2 conditions: E column and D column.

I don’t know if I was clear, it was quite tricky 🤪

---

<div class="post-metadata">

### Author: ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/system/32/53398_2.png) [@system](https://community.glideapps.com/u/system)
#### Post date: [December 24, 2021, 3:45pm UTC](https://community.glideapps.com/t/can-visibility-logic-in-glide-repeat-more-than-once-and-and-or/36234/5 "2021-12-24T15:45:58Z")

</div>

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
