In a field, I wan’t to display only results iltered by an if statement like this. But actually nothing is displayed.
{% if ( nid == '16' ) and ( node.field_video_externe | default ) %} {{ field_video_externe }} {% endif %}
Thanks for tips.
EDIT: if I add a empty field to rewrite the entire output and accessing to the fields via token, I could do something like this, but the video for other nids aren’t exclude as I would.
{% if (field_illus_administratif is not empty) and (nid != 16) %} {{ field_illus_administratif }} {{ else }} {{ field_video_externe }} {% endif %} <span class="center">{{ title }}</span>
with these tokens available/
{{ nid }} == {{ field_illus_administratif }} == Illustration du contenu {{ field_video_externe }} == Ajouter video externe