# 🆕 New containing screen context for conditions

**URL:** https://community.glideapps.com/t/new-containing-screen-context-for-conditions/12316
**Category:** General
**Created:** [July 11, 2020, 5:07pm UTC](https://community.glideapps.com/t/new-containing-screen-context-for-conditions/12316 "2020-07-11T17:07:42Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![Robert\_Petitto](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/robert_petitto/32/25193_2.png) [@Robert\_Petitto](https://community.glideapps.com/u/Robert_Petitto)
#### Post date: [July 11, 2020, 7:13pm UTC](https://community.glideapps.com/t/new-containing-screen-context-for-conditions/12316/5 "2020-07-11T19:13:24Z")

</div>

[https://www.youtube.com/watch?v=gP2MWN0udU0&t=320s](https://www.youtube.com/watch?v=gP2MWN0udU0&t=320s)

> If you need to have an AND _ **and** _ an OR condition, use an if-then-else column first.

For example, let’s say you want to a list of events that can only be edited by the event owner OR any app Admin AND only if the event hasn’t happened.

Here’s how:

1. Create an if-then-else column in the data table from where the component resides (let’s name this column “Editors”)
2. Create your OR condition within this if-then-else column. For example, if you want where Admin is True OR where email is signed in user, then create two if-then-else conditions:
  1. if Admin column is True then “true”
  2. if Email is signed-in user then “true”
  3. else “false”

3. In your component conditions, create your AND conditions. In the Details \> Edit \> Conditions, you can now create the AND/OR logic by stating Allow Editing where “Editors” is “true” AND where eventDate is after Today.

---

_[View the full topic](https://community.glideapps.com/t/new-containing-screen-context-for-conditions/12316)._
