# Bugs with conditions and :count

**URL:** <https://forum.bubble.io/t/bugs-with-conditions-and-count/104586>\
**Category:** Bugs\
**Created:** [August 3, 2020, 3:45pm UTC](https://forum.bubble.io/t/bugs-with-conditions-and-count/104586 "2020-08-03T15:45:39Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![vovahumnytskiy](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/vovahumnytskiy/32/235953_2.png) [@vovahumnytskiy](https://forum.bubble.io/u/vovahumnytskiy)\
**Post date:** [August 3, 2020, 3:45pm UTC](https://forum.bubble.io/t/bugs-with-conditions-and-count/104586/1 "2020-08-03T15:45:39Z")

</div>

Hi, guys! I noticed really annoying use case with using the “:count” in conditions. As you can see below, I told Bubble to do action only when I have 0 fields where parameter “Last?” is “yes”. And guess what. Action is done only when I write “… :count \> 1 …” and it does not care about how many fields with “Last?” = “yes” are in the database.

> **[Bubble Editor - Nexttdraft](https://bubble.io/page?type=page&name=edit_profile_page&id=nexttdraft&tab=tabs-2)**
>
> Build stuff without code and launch a startup without a tech-cofounder! Bubble is a visual programing language. Instead of typing code, use a visual editor to build applications.

Bubble: Vova, how many fields with “Last?” = “yes” are in the database right now?  
Vova: 0, Bubble. Please do the action only when there is at least 1 field.  
Bubble: okay, I would do the action right now.

=)

 ![iojiojiojiowefwefjiojiowjio](https://us1.discourse-cdn.com/bubble/original/3X/0/d/0d13af158bf40c59754ee07cf7e75cac904e16db.png) ![iojiowefwefjiojiow](https://us1.discourse-cdn.com/bubble/original/3X/6/1/61d7853af8ac5fcba0daa9e5efba4da892e2aa24.png)

---

<div class="post-metadata">

**Author:** ![vovahumnytskiy](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/vovahumnytskiy/32/235953_2.png) [@vovahumnytskiy](https://forum.bubble.io/u/vovahumnytskiy)\
**Post date:** [August 3, 2020, 3:57pm UTC](https://forum.bubble.io/t/bugs-with-conditions-and-count/104586/2 "2020-08-03T15:57:31Z")

</div>

ha-ha  
 ![jiojiojiojiojio](https://us1.discourse-cdn.com/bubble/original/3X/2/3/235e43f8be1262bd2b998c419ec0c76a56625cd9.png) ![okedkoko](https://us1.discourse-cdn.com/bubble/original/3X/3/7/37f74ae2f8ac1defb6b55c0208b6524e7c3eec37.png)

---

<div class="post-metadata">

**Author:** ![vovahumnytskiy](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/vovahumnytskiy/32/235953_2.png) [@vovahumnytskiy](https://forum.bubble.io/u/vovahumnytskiy)\
**Post date:** [August 3, 2020, 4:00pm UTC](https://forum.bubble.io/t/bugs-with-conditions-and-count/104586/3 "2020-08-03T16:00:16Z")

</div>

Guess what  
 ![jniojio](https://us1.discourse-cdn.com/bubble/original/3X/3/5/350d7b182d25df43a1d195ce4dba3c09e48ddf9e.png)

---

<div class="post-metadata">

**Author:** ![grottofilms](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/grottofilms/32/28015_2.png) [@grottofilms](https://forum.bubble.io/u/grottofilms)\
**Post date:** [August 3, 2020, 4:02pm UTC](https://forum.bubble.io/t/bugs-with-conditions-and-count/104586/4 "2020-08-03T16:02:28Z")

</div>

I would try a Search for categories:first item is empty. Functionally it’s the same thing.

---

<div class="post-metadata">

**Author:** ![vovahumnytskiy](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/vovahumnytskiy/32/235953_2.png) [@vovahumnytskiy](https://forum.bubble.io/u/vovahumnytskiy)\
**Post date:** [August 3, 2020, 4:13pm UTC](https://forum.bubble.io/t/bugs-with-conditions-and-count/104586/5 "2020-08-03T16:13:52Z")

</div>

The last "Search for Categorys:filtered:count"solved my problem.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/bubble/original/3X/2/8/2847faa74692c2ffa5d939d3dc3724cdd060d247.png) [@system](https://forum.bubble.io/u/system)\
**Post date:** [August 17, 2020, 3:45pm UTC](https://forum.bubble.io/t/bugs-with-conditions-and-count/104586/6 "2020-08-17T15:45:40Z")

</div>

Closed on August 17, 2020, 3:45pm UTC

This topic was automatically closed after 14 days. New replies are no longer allowed.
