@JaydeepPatel Please find below a solution that functions effectively if displaying fallback content at the end, regardless of whether a match is found, is acceptable. Unfortunately, Django's templating logic does not support the use of a break statement.
{% for feedItem in feeds.Firework.products %}
{% if feedItem.productId == event.extra.line_items.0.product_id|floatadd:0 %}
{{ feedItem.emailHtmlSmall | safe }}
{% endif %}
{% if forloop.last %}
//fallback option
{% endif %}
{% endfor %}
— Jad A | Klaviyo + Shopify + API Integrations Specialist • 7+ Years' Experience Helping with new setups, seamless integrations, and API connections—happy to connect. http://ja-technical-consulting.xyz/