How can I use Flow to add order rows to a Google sheet?

i have test this but always give me a ## output at the end, what i’m a doing wrong ?

{{order.name}},

{% for lineItems_item in order.lineItems %}{% if lineItems_item.product.totalInventory <= 0 %}{{lineItems_item.name}}::{{lineItems_item.currentQuantity}}{% if forloop.last %}{% else %}##{% endif %}{% endif %}

{% endfor %},

shopify,{{order.customer.firstName}} {{order.customer.lastName}}