Missing Pieces

{% for brick in missing_list %} {% if brick[4] == 'nil' %} {% else %} {% endif %} {% endfor %}
Part Num Color Element ID Qty Sets
{{ brick[3] }}{{ brick[3] }}{{ brick[0] }} {{ brick[1] }} {{ brick[2] }} {{ brick[4] }} {% set set_numbers = brick[5].split(',') %} {% for i in range(0, set_numbers|length, 2) %} {{ set_numbers[i] }}{% if i != set_numbers|length - 2 %},{% endif %} {% endfor %}