Hide Content in the email

I am trying to hide an element in the email template if it’s not exist.
I have an image and description of the post. Users send a post without image/with image. Is there anyway to create a condition in the email template to display the image if it is in the post.

I am currently receiving email - since there is no conditional element: The placeholder of the image still display in the email.

You can build the conditional part (all of its HTML) in a set value step before you send the mail and then include it as a dynamic piece of data.

Put the set value when the data is present in a condition THEN step and use ELSE for the placeholder

Thank you @bpj; I tried:
It is not working. Is there anything I am missing here?

I believe this is what @bpj means:

Or with placeholder:


(make sure the variables have the same name)

1 Like

Thank you! It is working now @bpj @karh

2 Likes