Show element when list of data is not empty

Why does this element show when i clearly have the proper condition within the said element?


Screenshot (169)

Why does this element show when I clearly have the proper condition within the said element?

You clearly don’t have the proper condition within the said element (in fact that condition makes no sense)…

A Count will never be ‘empty’… (in other words it will always be ‘not empty’)

‘Count’ will always return a number (whether that number is 0 or 74673698 etc. it will always be a number, and therefore never empty).

What exactly are you trying to do here? (I can’t work it our from what you’ve posted)…

1 Like

hide the element if the user has not created any data pertaining to said data.

for example: if user creates a post user would have 1 post, if user doesn’t create a post user’s post count would then = empty

If its wrong, what is the proper formality within Bubble’s structure to hide something when the logged in user’s data is empty pertaining to said data

for example: if user creates a post user would have 1 post, if user doesn’t create a post user’s post count would then = empty

No… then the count would be 0 (it wouldn’t be empty)…

what is the proper formality within Bubble’s structure to hide something when the logged in user’s data is empty pertaining to said data

Assuming the data in question is a datatype itself, and is a list field on the parent datatype (in this case a list of Posts on the User datatype), then you just need to add the following condition to show the element (assuming it is not visible on pageload):

When Current User's Posts Count > 0

1 Like

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