Answer the question
In order to leave comments, you need to log in
Why is comparison not working in TWIG Drupal?
there is a taxonomy term field and is configured as an entity identifier in the material.
in the file field--field-name.html.twig I want to add code for a certain term, how to do this if the comparison does not work
{% for item in items %}
{% if item.content == 13 %}
// некий код
{% endif %}
{% endfor %}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question