# NO BUG: ACF true/false Only false condition works on relationship loop

**URL:** <https://forum.bricksbuilder.io/t/no-bug-acf-true-false-only-false-condition-works-on-relationship-loop/30204>\
**Category:** Bugs\
**Tags:** v1-12-1\
**Created:** [February 12, 2025, 9:45am UTC](https://forum.bricksbuilder.io/t/no-bug-acf-true-false-only-false-condition-works-on-relationship-loop/30204 "2025-02-12T09:45:48Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![simotamas7](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/simotamas7/32/22976_2.png) [@simotamas7](https://forum.bricksbuilder.io/u/simotamas7)\
**Post date:** [February 12, 2025, 9:45am UTC](https://forum.bricksbuilder.io/t/no-bug-acf-true-false-only-false-condition-works-on-relationship-loop/30204/1 "2025-02-12T09:45:48Z")

</div>

**Browser** : Chrome 110  
**OS** : macOS / Windows / Linux / etc.  
**URL** : Link to a page that illustrates this issue  
**Video** : Short screen recording that illustrates this issue (free tool: [jam.dev](https://jam.dev/))

I have a **relationship field loop** on a post type that renders perfectly, however inside that post (relationship) type I have a **true/false field** and I want to render the fields only if the value is true.  
My setup is the following:

![bricks](https://forum.bricksbuilder.io/uploads/default/original/3X/6/0/60fc768957df3e01c8a8aadf27c83ad999366ee1.png)

If i put the following condition to the loop div only the false condition returns the value.

```auto
**This condition works.**
Dynamic Data
{acf_personnel_active:value}
==
0

```

```auto
**This condition won't work.**
Dynamic Data
{acf_personnel_active:value}
==
1

```

![bricks2](https://forum.bricksbuilder.io/uploads/default/original/3X/c/0/c004408ef784700fbcb9bc2c1060cc34ccc98e70.png)

If I put the condition to the Element div, than the true condition also works but an empty loop div gets rendered.

I don’t know why the false condition works and the true doesn’t on the first version.

Not sure if this is a bug or am I doing something wrong.

---

<div class="post-metadata">

**Author:** ![adilhassan](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/adilhassan/32/25041_2.png) [@adilhassan](https://forum.bricksbuilder.io/u/adilhassan)\
**Post date:** [February 12, 2025, 10:59am UTC](https://forum.bricksbuilder.io/t/no-bug-acf-true-false-only-false-condition-works-on-relationship-loop/30204/2 "2025-02-12T10:59:36Z")

</div>

It sounds like the issue might be with how Bricks processes conditional logic on loops. Since the false condition works but the true one doesn’t, try explicitly casting the value to a boolean or checking for string vs. integer comparison issues. Also, test using {acf\_personnel\_active} instead of {acf\_personnel\_active:value} to see if that changes the behavior. If the issue persists, it could be a Bricks or ACF quirk, consider reaching out to their support or checking their forums for similar cases.

---

<div class="post-metadata">

**Author:** ![simotamas7](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/simotamas7/32/22976_2.png) [@simotamas7](https://forum.bricksbuilder.io/u/simotamas7)\
**Post date:** [February 12, 2025, 11:29am UTC](https://forum.bricksbuilder.io/t/no-bug-acf-true-false-only-false-condition-works-on-relationship-loop/30204/3 "2025-02-12T11:29:17Z")

</div>

@adilhassan thank you for your answer. 🙂

I already tested the {acf\_personnel\_active} without the :value and I also did test it with is not comparison equators, but everything I tried goes back to rendering perfectly if the value is false and not rendering at all if the value is true.

I will try to search on ACF forums.

---

<div class="post-metadata">

**Author:** ![adilhassan](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/adilhassan/32/25041_2.png) [@adilhassan](https://forum.bricksbuilder.io/u/adilhassan)\
**Post date:** [February 12, 2025, 11:40am UTC](https://forum.bricksbuilder.io/t/no-bug-acf-true-false-only-false-condition-works-on-relationship-loop/30204/4 "2025-02-12T11:40:29Z")

</div>

[simotamas7](https://forum.bricksbuilder.io/u/simotamas7)

sorry but cant help further as this is what I know!

---

<div class="post-metadata">

**Author:** ![timmse](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/timmse/32/1192_2.png) [@timmse](https://forum.bricksbuilder.io/u/timmse)\
**Post date:** [February 12, 2025, 1:27pm UTC](https://forum.bricksbuilder.io/t/no-bug-acf-true-false-only-false-condition-works-on-relationship-loop/30204/5 "2025-02-12T13:27:55Z")

</div>

Hi Tamas,  
Thanks so much for your report!

Please try this workaround by setting up your relationship query in a different way without using a condition (remove the condition):

 ![CleanShot 2025-02-12 at 13.55.31@2x](https://forum.bricksbuilder.io/uploads/default/original/3X/1/c/1cd6a9c520ddd58f8dd68f4b11af1f97ed6891de.png)

Let me know if it works ✌

Best regards,  
timmse

---

<div class="post-metadata">

**Author:** ![simotamas7](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/simotamas7/32/22976_2.png) [@simotamas7](https://forum.bricksbuilder.io/u/simotamas7)\
**Post date:** [February 12, 2025, 2:07pm UTC](https://forum.bricksbuilder.io/t/no-bug-acf-true-false-only-false-condition-works-on-relationship-loop/30204/6 "2025-02-12T14:07:54Z")

</div>

Hey @timmse  
Thank you so much!  
The workaround works as expected!

---

<div class="post-metadata">

**Author:** ![timmse](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/timmse/32/1192_2.png) [@timmse](https://forum.bricksbuilder.io/u/timmse)\
**Post date:** [February 12, 2025, 3:44pm UTC](https://forum.bricksbuilder.io/t/no-bug-acf-true-false-only-false-condition-works-on-relationship-loop/30204/7 "2025-02-12T15:44:24Z")

</div>

Great, you’re welcome 🙂  
The condition does not take effect because it is executed before the loop and returns always false. This is the expected behavior and not a bug.
