How to show text if dynamic data exist

I have this: Por {author_name}, {author_bio} . I would like to show the comma only if {author_bio} exist.
Can I do that in Bricks?

I would also like to show posts in a loop only if they have a featured image set. I did this in the Card element, but when there’s a post without featured image, no posts are shown.

Any help is appreciated!

1 Like
  1. Insert 2 widget for different dynamic tag (Basic
    text → change tag div to span ) and inset comma in last widget

  2. Use Condition tools for hide last widget

HI @clickfusion63 ,

1)Thanks! I could manage it with your help :slight_smile:

  1. Sorry I did not understand. What I’m trying to do is show only posts that have a featured image set.

Thank you

Add a comparison to the child block. What is wrong now is that you are doing the loop and comparison in the same parent block.

Gotcha, thanks buddy, that was it :wink: