Question: The `item.content` for my field item is 'active'. However, when I use a comparison operator as seen below, it never equates to True but always False. I thought maybe some spacing issues was the reason, but that seems to not be the case.

Is the content in `item.content` not a string? I am assuming when I call item.content, its probably a object, but I can't find any documentation on how to turn a object's value into a string so it equates to true. 

```
{% for item in items %}
  {% if item.content == 'active' %}
    <div{{ item.attributes.addClass('field__item', 'status_item_active') }}>{{ item.content }}</div>
  {% else %}
    <div{{ item.attributes.addClass('field__item', 'status_item_notactive') }}>{{ item.content }}</div>
  {% endif %}
{% endfor %}

```

Answer: 
You can try this instead

```
{% if element['#items'][key].value == 'active' %}

```
I solved it with this code:

```
{% if 'active' in item.content|render|render %}

```