Checking if Matrix fields are empty or not? In a Matrix field i want to check if block.logolink (simple text) OR block.logolinkDropdown (dropdown with empty field) are empty or not:

{% if block.logolink or block.logolinkDropdown %}


If i check them with {{ block.fieldHandle }} they're empty. But still it passes the condition.

Where's my mistake in this statement?

{% for block in entry.logomatrix %}
{% switch block.type %}

{% case "logo" %}
{% if block.logobild %}
    {% for logo in block.logobild %}
    {% if block.logolink or block.logolinkDropdown %}
        {% if block.internerLink %}
            &lt;a href={{ block.logolink }}{{ block.logolinkDropdown }}&gt;
        {% else %}
            &lt;a href={{ block.logolink }}{{ block.logolinkDropdown }} TARGET="_blank"&gt;
        {% endif %}
    {% else %}
        &lt;a href="{{ logo.getUrl('logogross')}}" data-lightbox="image" data-title="{{ block.logobeschreibung }}"&gt;&lt;/a&gt;
    {% endif %}

    {% endfor %}
{% endif %}

{% case "textbutton" %}     
...

{% endswitch %} 
{% endfor %}
You can get a dropdown field's selected value by using entry.fieldhandle.value. So if entry.fieldhandle.value|length should do the trick. I think you can even omit the length filter in this case, as if you do it with the plain text field. Both an empty string and the length of an empty string resolve to false.