We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
lenientIf
Currently, lenientIf config option only applies to statements with a single operand. This is a different behavior from the Shopify (Ruby) liquid.
Current behavior (strictVariables and lenientIf are both set to true):
strictVariables
true
{% if nonexistent %}{% endif %}
{% if nonexistent == "value" %}one{% else %}two{% endif %}
Expected:
two
{% if nonexistent != "value" %}one{% else %}two{% endif %}
one
The text was updated successfully, but these errors were encountered:
fix: Allow lenientIf for multiple operands (issue #682) (#683)
490ff43
* allow `lenientIf` for multiple operands * update tests
chore(release): 10.11.1 [skip ci]
28ebe11
## [10.11.1](v10.11.0...v10.11.1) (2024-04-21) ### Bug Fixes * allow %Z for TimezoneDate, update docs accordingly [#684](#684) ([e09657c](e09657c)) * Allow `lenientIf` for multiple operands (issue [#682](#682)) ([#683](#683)) ([490ff43](490ff43))
Successfully merging a pull request may close this issue.
Currently,
lenientIf
config option only applies to statements with a single operand.This is a different behavior from the Shopify (Ruby) liquid.
Current behavior (
strictVariables
andlenientIf
are both set totrue
):{% if nonexistent %}{% endif %}
works fine{% if nonexistent == "value" %}one{% else %}two{% endif %}
returns an errorExpected:
{% if nonexistent == "value" %}one{% else %}two{% endif %}
to returntwo
{% if nonexistent != "value" %}one{% else %}two{% endif %}
to returnone
The text was updated successfully, but these errors were encountered: