Skip to content

assign variable scope doesn't include loops #56

@larrykluger

Description

@larrykluger

Hi,
Thank you for your time on the library.

A bug:

{% assign total = 10 %}
{% for line in (0..2) %}
    {% assign total = 20 %}
{% endfor %}
Total: {{total}} -- should be 20<br>

shows 10 as the result, this is a bug.

The live dot liquid site correctly shows 20.

Thanks,
Larry

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions