# How to require multiple criteria for if statement

**URL:** <https://community.glideapps.com/t/how-to-require-multiple-criteria-for-if-statement/24861>\
**Category:** Ask for Help\
**Created:** [March 29, 2021, 8:46am UTC](https://community.glideapps.com/t/how-to-require-multiple-criteria-for-if-statement/24861 "2021-03-29T08:46:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ARandomBanana](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/arandombanana/32/24052_2.png) [@ARandomBanana](https://community.glideapps.com/u/ARandomBanana)\
**Post date:** [March 29, 2021, 8:46am UTC](https://community.glideapps.com/t/how-to-require-multiple-criteria-for-if-statement/24861/1 "2021-03-29T08:46:19Z")

</div>

How would I be able to require multiple criteria in order for an if-then-else statement? In C# terms,  
if(a && b){  
return true;  
} else{  
return false;  
}  
Currently, the if-else statement evaluates it as true if at least one condition is met, which I do not want. Is there a way to work around this? Thanks

---

<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:** [March 29, 2021, 8:48am UTC](https://community.glideapps.com/t/how-to-require-multiple-criteria-for-if-statement/24861/2 "2021-03-29T08:48:55Z")

</div>

The way to do this is to flip your logic around. So…

- If a is not true, then false
- If b is not true, then false
- Else true

PS. @ARandomBanana I used `not true` instead of `false` in that example for a reason. Columns will often have an initial state of `empty`. This is the case with boolean columns. A boolean column in its default new state (empty) will be neither true or false. So testing for `not true` covers both the default state (`empty`), and `false`.

---

<div class="post-metadata">

**Author:** ![ARandomBanana](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/arandombanana/32/24052_2.png) [@ARandomBanana](https://community.glideapps.com/u/ARandomBanana)\
**Post date:** [March 29, 2021, 8:49am UTC](https://community.glideapps.com/t/how-to-require-multiple-criteria-for-if-statement/24861/3 "2021-03-29T08:49:45Z")

</div>

Oh! Sorry, I’m not very good at thinking backward. Thanks for the help 😃

---

<div class="post-metadata">

**Author:** ![NoCodeAndy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/nocodeandy/32/62530_2.png) [@NoCodeAndy](https://community.glideapps.com/u/NoCodeAndy)\
**Post date:** [January 17, 2024, 4:52pm UTC](https://community.glideapps.com/t/how-to-require-multiple-criteria-for-if-statement/24861/4 "2024-01-17T16:52:53Z")

</div>


