View conditional logic based on dropdown value I have a view that is outputting fields from a paragraph. I want to be able to output different markup. There are two available values in the dropdown

1|Wrapping Link
2|Internal Link


and they should determine if the markup is wrapped by a link or if the same link is a contained within the markup as a stand-alone link.

In my custom version of views-view-fields.html.twig I want to have some logic in place that will check the value of the dropdown and display the correct markup. I have tried the following but this is invalid.

{%- if {{ fields.field_banner_type.content }} = "1" -%}
    // wrapping link
{%- else -%}
    // no wrapping link
{%- endif %}
No need to {{ fields.field_banner_type.content }} inside if statement use fields.field_banner_type.content like the following:  

{% if fields.field_banner_type.content == "1" %}
  {# wrapping link #}
{% else %}
  {# no wrapping link #}
{% endif %}


For more info See Twig if Documentation