Create node--articles.html.twig and place it in your theme's templates folder.
{{ content|without('field_name', 'field_name_other') }} {% if content.field_name.0 is empty %} <div class="something">{{ content.field_name_other }}</div> {% else %} <div class="something">{{ content.field_name }}</div> {% endif %} Note:
content.field_name.0gets the raw valuecontent|without()this is so your cache tags bubble up to the page cachecontent.field_name.0gets the raw value