{% macro compareNameCells(list) %} {% for idx in [0,1,2,3] %} {% if list[idx] %} {{ list[idx].name }} {% endif %} {% endfor %} {% endmacro %}