Hide/Show fields value in nodes I have a content type = Article. There I have 2 field. What I want is, If field 1 is empty or does not contain any value, replace this field with field 2, (with same css and html structure) else keep showing content of field 1 by default.

Is there any way to this in D8?
Create node--articles.html.twig and place it in your theme's templates folder.

{% if content.field_name.0 is empty %}
    &lt;div class="something"&gt;{{ content.field_name_other }}&lt;/div&gt;
{% else %}
    &lt;div class="something"&gt;{{ content.field_name }}&lt;/div&gt;
{% endif %}


Note: 


content.field_name.0 gets the raw value