<p>How do I access the Dropdown Option Label in this matrix?</p>

<pre><code>&lt;div class="post-weather"&gt;
    {% for block in entry.weather %}
        {% if block.type == "condition" %}
            &lt;span data-tooltip aria-haspopup="true" title="{{ condition.label }}" class="has-tip wi {{ block.condition }}"&gt;&lt;/span&gt;
        {% elseif block.type == "temperature" %}
            &lt;p class="post-temperature right"&gt;
            {{ block.degrees }}
            &lt;sup&gt;°C&lt;/sup&gt;&lt;/p&gt;
        {% endif %}
    {% endfor %}
&lt;/div&gt;
</code></pre>

CC BY-SA 3.0
2016-11-06T04:24:13.940Z
Just to be clear... you have a Matrix block called `condition` and a dropdown field type called `condition`?
Brad Bell
CC BY-SA 3.0
2016-11-06T19:25:15.933Z
I changed the Matrix block to "forecast" and the dropdown field remains "condition", albeit more readable now, I am unsure what to use for the title `{{,,,,,}}` field to produce the Option Label.
Nutmeg
<matrix>
Parsing a Dropdown Option Label in Matrix
# Parsing a Dropdown Option Label in Matrix

(Asked by: username_0 on 2016-11-06)

How do I access the Dropdown Option Label in this matrix?

    {% for block in entry.weather %}
        {% if block.type == "condition" %}
            
        {% elseif block.type == "temperature" %}
            
            {{ block.degrees }}
            °C
        {% endif %}
    {% endfor %}

**Tags:** matrix

> **Comments:**
> **username_1**: Just to be clear... you have a Matrix block called `condition` and a dropdown field type called `condition`?  
> **username_0**: I changed the Matrix block to "forecast" and the dropdown field remains "condition", albeit more readable now, I am unsure what to use for the title `{{,,,,,}}` field to produce the Option Label.  

---

## 0 answers

