# Creating Non-Reversible If-Then-Else? How to Avoid Undead Zombie Rows?

**URL:** <https://community.glideapps.com/t/creating-non-reversible-if-then-else-how-to-avoid-undead-zombie-rows/70048>\
**Category:** Ask for Help\
**Created:** [January 26, 2024, 5:02am UTC](https://community.glideapps.com/t/creating-non-reversible-if-then-else-how-to-avoid-undead-zombie-rows/70048 "2024-01-26T05:02:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Maksidaa](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/maksidaa/32/62648_2.png) [@Maksidaa](https://community.glideapps.com/u/Maksidaa)\
**Post date:** [January 26, 2024, 5:02am UTC](https://community.glideapps.com/t/creating-non-reversible-if-then-else-how-to-avoid-undead-zombie-rows/70048/1 "2024-01-26T05:02:13Z")

</div>

I’ve got a voting system for 10 users that has the ability to add more voters in the future. For now, when 10 votes are reached, the row is filtered out by an If-Then-Else Column (Column for counting active users = 10, Count All Yes Votes, If Yes Votes = Active Users then true, Else empty).

My problem is, when I add another voter, then the column counting active users is now = 11, but the yes votes for every row max out at 10. My If-Then-Else reverts to empty for every row that has already been voted on, and all of those rows are no longer filtered out. It’s like they are coming back from the dead and reappearing in the collections.

There is probably an easy way to fix this, but I can’t figue it out. Any help is appreciated! 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:** [January 26, 2024, 5:40am UTC](https://community.glideapps.com/t/creating-non-reversible-if-then-else-how-to-avoid-undead-zombie-rows/70048/2 "2024-01-26T05:40:03Z")

</div>

I think my suggestion would be to add a column to the table that contains your voting topics to hold the number of active users at the time the topic is created. Then instead of hard coding a number in your if-then-else, you can compare the number of votes cast to the number allowed for each topic.

---

<div class="post-metadata">

**Author:** ![Maksidaa](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/maksidaa/32/62648_2.png) [@Maksidaa](https://community.glideapps.com/u/Maksidaa)\
**Post date:** [January 26, 2024, 3:58pm UTC](https://community.glideapps.com/t/creating-non-reversible-if-then-else-how-to-avoid-undead-zombie-rows/70048/3 "2024-01-26T15:58:09Z")

</div>

Thanks Darren! Right as I woke up this morning the very same idea popped into my head. Your comment is a great confirmation.
