I have a matrix field with two different block types and I want create a conditional to check if one of the blocks is not empty show it and if it is show the other. This is not working:
{% for block in entry.page.type('text, intro') %}
{% if block.type.text != "" %}
<h3>{{ block.text }}</h3>
{% else %}
{{ block.intro }}
{% endif %}
{% endfor %}
Thanks!