Skip to content

Does not understand equals operator in assign #179

Open

Description

@elmuerte
{%- assign foo = (bar == quux) -%}

is reformatted to

{%- assign foo = (bar = = quux) -%}

Extension version: 4.0.1

Activity

  1. panoply commented on Jan 24, 2024

    @panoply
    Owner

    Hey @elmuerte

    Is this valid Liquid? I've never seen parenthesis wrapped in assignments, have I missed something? Sorry for late response.

  2. elmuerte commented on Jan 25, 2024

    @elmuerte
    Author

    The parenthesis is an error on my part, they should not be there.

    {% assign foo = bar == quux %}
    

    That is valid in liquidjs. demo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions