Skip to content

Feature request: allow lenientIf for multiple operands #682

Closed
@amedve

Description

@amedve

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):

  • {% if nonexistent %}{% endif %} works fine
  • {% if nonexistent == "value" %}one{% else %}two{% endif %} returns an error

Expected:

  • {% if nonexistent == "value" %}one{% else %}two{% endif %} to return two
  • {% if nonexistent != "value" %}one{% else %}two{% endif %} to return one

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions