Lava Example - 61 | Rock Community

Lava Example - 67


Prompt

Great! But not all of our staff knows what each of those statuses mean.

We listed the Value before, but now let's list the Description too.

This is a bit long, so let's use an ordered list

    this time.

Initial Code
{% assign connectionStatuses = 4 | FromCache:'DefinedType' %}
{% assign statuses = connectionStatuses.DefinedValues %}
Solution Lava
{% assign connectionStatuses = 4 | FromCache:'DefinedType' %}
{% assign statuses = connectionStatuses.DefinedValues %}
<ol>
    {% for status in statuses %}
        <li><strong>{{ status.Value }}</strong>: {{ status.Description }}</li>
    {% endfor %}
</ol>