Conditionals
Use IF/ELSE statements in your FeedOtter emails to show/hide elements based on the presence of content or property values.
Basic IF
[% if post.image_url == true %]
<img src="[[post.image_url]]">
[% endif %]Basic If/Else
[% if post.image_url %]
<img src="[[post.image_url]]">
[% else %]
<img src="http://placehold.it/600x400">
[% endif %]Ternary If/Else
[[post.image_url ? post.image_url : 'http://placehold.it/600x400']]Popular Use Cases
Hide if there is no content in a post loop
Hide if we are at the last entry in a loop
Hide an image if there is no image value
Even/Odd

Last updated
