You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The forloop.parentloop object is not supported. Liquid documentation here.
Example:
List of countries:
{%- for continent in world.continents -%}
{%- for country in continent.countries -%}
{{ country.name }}{% unless forloop.last and forloop.parentloop.last %},{% endunless %}
{%- endfor -%}
{%- endfor -%}
Expected: List of countries:canada,united states,mexico,guatemala,hondura,nicaragua,el salvador,costa rica,panama,belize
Actual: List of countries:canada,united states,mexico,guatemala,hondura,nicaragua,el salvador,costa rica,panama,belize, (trailing comma)
Issue: forloop.parentloop always returns nil, so forloop.parentloop.last statement is always evaluated as false.
The text was updated successfully, but these errors were encountered:
The
forloop.parentloop
object is not supported. Liquid documentation here.Example:
Expected:
List of countries:canada,united states,mexico,guatemala,hondura,nicaragua,el salvador,costa rica,panama,belize
Actual:
List of countries:canada,united states,mexico,guatemala,hondura,nicaragua,el salvador,costa rica,panama,belize,
(trailing comma)Issue:
forloop.parentloop
always returns nil, soforloop.parentloop.last
statement is always evaluated as false.The text was updated successfully, but these errors were encountered: