# True, false, empty - Boolean filter help

**URL:** <https://community.glideapps.com/t/true-false-empty-boolean-filter-help/43757>\
**Category:** Ask for Help\
**Created:** [July 1, 2022, 12:56pm UTC](https://community.glideapps.com/t/true-false-empty-boolean-filter-help/43757 "2022-07-01T12:56:55Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![MattLB](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mattlb/32/41284_2.png) [@MattLB](https://community.glideapps.com/u/MattLB)\
**Post date:** [July 1, 2022, 12:56pm UTC](https://community.glideapps.com/t/true-false-empty-boolean-filter-help/43757/1 "2022-07-01T12:56:56Z")

</div>

I want to filter a list based on a boolean AND another value.

It would be a simple (boolean == true) AND (value==20) or (boolean == false) AND (value==30) except for “empty”.

I was using (boolean == false OR boolean == empty) but now I need to add the AND filter.

Is their a simple way to do this knowing that ‘empties’ exist?

---

<div class="post-metadata">

**Author:** ![DarrenHumphries](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darrenhumphries/32/91715_2.png) [@DarrenHumphries](https://community.glideapps.com/u/DarrenHumphries)\
**Post date:** [July 1, 2022, 1:18pm UTC](https://community.glideapps.com/t/true-false-empty-boolean-filter-help/43757/2 "2022-07-01T13:18:41Z")

</div>

Perhaps the best option would be to split this into multiple if, then statements.

---

<div class="post-metadata">

**Author:** ![MattLB](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mattlb/32/41284_2.png) [@MattLB](https://community.glideapps.com/u/MattLB)\
**Post date:** [July 1, 2022, 1:25pm UTC](https://community.glideapps.com/t/true-false-empty-boolean-filter-help/43757/3 "2022-07-01T13:25:57Z")

</div>

The boolean filter is ARCHIVED.

I can create an ITE column:

If ARCHIVED == true, TRUE  
if ARCHIVED == false, FALSE  
else FALSE

Just wondering if their is another way to handle this within the in-line list filer without adding another column.

Thanks

---

<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:** [July 1, 2022, 2:10pm UTC](https://community.glideapps.com/t/true-false-empty-boolean-filter-help/43757/4 "2022-07-01T14:10:07Z")

</div>

Never check for a false condition unless you really need to. It’s better to check for ‘true’ or ‘not true’. Checking for ‘not true’ will include both false and empty conditions.

---

<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:** [July 1, 2022, 2:40pm UTC](https://community.glideapps.com/t/true-false-empty-boolean-filter-help/43757/5 "2022-07-01T14:40:43Z")

</div>

Worth noting that we also have the option now to test for “is checked” or “is not checked”, which is essentially the same thing, but possibly a little easier to get your head around.

---

<div class="post-metadata">

**Author:** ![MattLB](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mattlb/32/41284_2.png) [@MattLB](https://community.glideapps.com/u/MattLB)\
**Post date:** [July 1, 2022, 3:14pm UTC](https://community.glideapps.com/t/true-false-empty-boolean-filter-help/43757/6 "2022-07-01T15:14:51Z")

</div>

And that should be in the section of the manual describing boolean and their use (type in boolean and see what you get) 🙂

Thanks

PS. I was checking for the false condition since logically it was the condition I cared about. I switched to true (really anti-false in my logic)

---

<div class="post-metadata">

**Author:** ![MattLB](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mattlb/32/41284_2.png) [@MattLB](https://community.glideapps.com/u/MattLB)\
**Post date:** [July 1, 2022, 3:21pm UTC](https://community.glideapps.com/t/true-false-empty-boolean-filter-help/43757/7 "2022-07-01T15:21:02Z")

</div>

Son-of-a-gun. I should read to the bottom of the drop down

For a boolean value does ‘is checked’ mean the value exists and is true and ‘is not checked’ is everything else (either false or empty)?

![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/c/0/c079fb03093654bb207087a1610519cc11ed1923.png)

---

<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:** [July 1, 2022, 3:40pm UTC](https://community.glideapps.com/t/true-false-empty-boolean-filter-help/43757/8 "2022-07-01T15:40:42Z")

</div>

> [@MattLB](#):
>
> For a boolean value does ‘is checked’ mean the value exists and is true and ‘is not checked’ is everything else (either false or empty)?

Yes 🙂

---

<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:** [July 3, 2022, 3:00pm UTC](https://community.glideapps.com/t/true-false-empty-boolean-filter-help/43757/9 "2022-07-03T15:00:38Z")

</div>

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