{% if exist is same as(true) %} {% for work in works %} {{ work }} {% endfor %} {% else %} {% if task is not null %} {{ task.work }} {% endif %} {% for work in works %} {{ work }} {% endfor %} {% endif %}