# SOLVED: is/is not empty Condition via Props Doesn't Work Correctly With Dynamic Data

**URL:** <https://forum.bricksbuilder.io/t/solved-is-is-not-empty-condition-via-props-doesnt-work-correctly-with-dynamic-data/34289>\
**Category:** Bugs\
**Tags:** v2-0\
**Created:** [July 28, 2025, 7:43am UTC](https://forum.bricksbuilder.io/t/solved-is-is-not-empty-condition-via-props-doesnt-work-correctly-with-dynamic-data/34289 "2025-07-28T07:43:35Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mihai-circea](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/mihai-circea/32/32176_2.png) [@mihai-circea](https://forum.bricksbuilder.io/u/mihai-circea)\
**Post date:** [July 28, 2025, 7:43am UTC](https://forum.bricksbuilder.io/t/solved-is-is-not-empty-condition-via-props-doesnt-work-correctly-with-dynamic-data/34289/1 "2025-07-28T07:43:35Z")

</div>

**Browser** : Version 140.0.7312.0 (Official Build) dev (64-bit)  
**OS** : Windows 11 PRO Version 24H2 Build 26100.4652  
**URL** : [https://mac.circea.dev/](https://mac.circea.dev/)  
**PHP** : 8.3.22  
**WP** : 6.8.2

## Description

“is empty” and “is not empty” conditions don’t work properly in components (at least with dynamic data, specifically images).

In the example below, I have a Background Alpha component, with props “condition\_target” and “condition\_operator”. The “condition\_target” property has a default of “1”, and the “condition\_operator” has a default of “is not empty” (actual value is !=).

I’ve used a select prop with custom options because the select prop won’t auto populate when attached to the condition operator dropdown. Actually, I think that’s the case for all dropdowns of the condition builder.

The settings of the condition are

- “Dynamic data”
- “condition\_target : 1”
- “condition\_operator : !=”
- [empty]

I would expect the condition “1 != empty/false/0” to be true and the image to be displayed by default, but it doesn’t seem to work that way.

In my Hero Section Alpha component I have 2x Background Alpha. The first one should display when “acf\_term\_image” is not empty, and the second one when “acf\_term\_image” is empty.

In reality, not only do the conditions not work, but only one Background Alpha is displayed on the front-end, even with both having the exact same condition (either both acf\_term\_image is empty, or both acf\_term\_image is not empty; same story with featured\_image).

My Footer Alpha footer component should also have a background image, but same story - the behavior is very strange. Conditions seem to be working, but incorrectly. For example, if I set the condition featured\_image is not empty (via props) on the Background Alpha component that’s in my footer, the Background Alpha background will display on the front-end, but it SHOULD NOT, as my featured\_image is actually empty.

## Screenshots

 ![brx-conditions-bug-a-2](https://forum.bricksbuilder.io/uploads/default/original/3X/7/7/77216bfc7040e483bd7857515661d37c54e2f98e.jpeg)  
 ![brx-conditions-bug-a-3](https://forum.bricksbuilder.io/uploads/default/original/3X/0/0/0059cdf8580005b4502e575c9e363baee6dded38.jpeg)  
 ![brx-conditions-bug-a-4](https://forum.bricksbuilder.io/uploads/default/original/3X/9/6/96a0030d159eee1097ebf6acfbd7af681241261a.jpeg)  
 ![brx-conditions-bug-a-5](https://forum.bricksbuilder.io/uploads/default/original/3X/9/b/9be932c59272f246741067dc6a948e6ab37e59fa.jpeg)  
 ![brx-conditions-bug-a-6](https://forum.bricksbuilder.io/uploads/default/original/3X/f/a/fa166f558b4e0b463499ee6a1d6e85083387044e.jpeg)

---

<div class="post-metadata">

**Author:** ![Matej](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/matej/32/20184_2.png) [@Matej](https://forum.bricksbuilder.io/u/Matej)\
**Post date:** [July 29, 2025, 7:50am UTC](https://forum.bricksbuilder.io/t/solved-is-is-not-empty-condition-via-props-doesnt-work-correctly-with-dynamic-data/34289/2 "2025-07-29T07:50:16Z")

</div>

Hi @mihai-circea,

thank you for your report. So, just to be certain, before I create an internal ticket, everything works, until you connect dynamic data to the “compare” part of the condition, right?

 ![CleanShot 2025-07-29 at 09.47.51@2x](https://forum.bricksbuilder.io/uploads/default/original/3X/e/0/e0db1f447f6f0f2d297e644d70bc4cacd1601c5f.jpeg)

Best regards,  
Matej

---

<div class="post-metadata">

**Author:** ![mihai-circea](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/mihai-circea/32/32176_2.png) [@mihai-circea](https://forum.bricksbuilder.io/u/mihai-circea)\
**Post date:** [July 29, 2025, 11:16am UTC](https://forum.bricksbuilder.io/t/solved-is-is-not-empty-condition-via-props-doesnt-work-correctly-with-dynamic-data/34289/3 "2025-07-29T11:16:15Z")

</div>

Based on my testing, yes, that seems to be the case.

But I’d also like to know, should a 1 != [empty] condition return true, therefore be a viable default condition to display the element? For some of my components, not all instances will actually have a condition.

---

<div class="post-metadata">

**Author:** ![Matej](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/matej/32/20184_2.png) [@Matej](https://forum.bricksbuilder.io/u/Matej)\
**Post date:** [July 30, 2025, 7:48am UTC](https://forum.bricksbuilder.io/t/solved-is-is-not-empty-condition-via-props-doesnt-work-correctly-with-dynamic-data/34289/4 "2025-07-30T07:48:44Z")

</div>

Hi @mihai-circea,

thank you for confirming. I’ve created an internal bug report for this.

As for your question, yes, this should show the element:  
 ![CleanShot 2025-07-30 at 09.48.08@2x](https://forum.bricksbuilder.io/uploads/default/original/3X/8/0/809f87c40610a15412014d7329aba2c9a15a2035.png)

Best regards,  
Matej

---

<div class="post-metadata">

**Author:** ![bricks.assistant](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/bricks.assistant/32/32537_2.png) [@bricks.assistant](https://forum.bricksbuilder.io/u/bricks.assistant)\
**Post date:** [July 15, 2026, 1:30pm UTC](https://forum.bricksbuilder.io/t/solved-is-is-not-empty-condition-via-props-doesnt-work-correctly-with-dynamic-data/34289/5 "2026-07-15T13:30:19Z")

</div>

We’ve addressed this in Bricks 2.4-beta (beta release), now available for manual download from your Bricks account.

Please read the [changelog entry](https://bricksbuilder.io/release/bricks-2-4-beta/) before testing, and let us know if you experience any issues. Note: beta builds are not recommended for production sites.

---

<div class="post-metadata">

**Author:** ![stabilo](https://forum.bricksbuilder.io/letter_avatar_proxy/v4/letter/s/8797f3/32.png) [@stabilo](https://forum.bricksbuilder.io/u/stabilo)\
**Post date:** [September 6, 2026, 2:26pm UTC](https://forum.bricksbuilder.io/t/solved-is-is-not-empty-condition-via-props-doesnt-work-correctly-with-dynamic-data/34289/6 "2026-09-06T14:26:41Z")

</div>

I updated to 2.4 RC. The problem seems to be fixed now. Thank you @mihai-circea for reporting this issue. It took me hours today to find your thread.
