If statement with Content block in October CMS

Viewed 790

In October CMS, I'm wondering if there is a way of checking if a content block is empty?

I am enclosing it in a message tag, which I would not wish to display if the block wasn't populated.

Something like:

{% if not empty content 'homepage/message' %}
      <div class="ui message positive home-messages">
          {% content 'homepage/message' %}
        </div>
{% endif %}
1 Answers
Related