Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

for is not behaving properly (as defined by Ruby's liquid) when a value is null. #639

Closed
ebobby opened this issue Aug 15, 2023 · 0 comments · Fixed by #640
Closed

for is not behaving properly (as defined by Ruby's liquid) when a value is null. #639

ebobby opened this issue Aug 15, 2023 · 0 comments · Fixed by #640

Comments

@ebobby
Copy link
Contributor

ebobby commented Aug 15, 2023

When rendering the following, with strict: true:

{% assign hello = "hello,world" | split: "," | concat: null %}{% for i in hello %}{{ i }}{% endfor %}

It returns an error undefined variable: i which seems to be a bug, given that the variable is defined, just happens to be null. This is a mismatch with the behavior of Shopify's liquid.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant