Skip to content

Weird behavior if the context variable is "blank" #814

Description

@amit777

template:

{% if blank == "true" %} BLANKSTRUE {% else %} NOT TRUE{% endif %}

context:

{
  "blank": "true"
}

Direct link to reproduction
https://liquidjs.com/playground.html#eyUgaWYgYmxhbmsgPT0gInRydWUiICV9IEJMQU5LU1RSVUUgeyUgZWxzZSAlfSBOT1QgVFJVRXslIGVuZGlmICV9,ewogICJibGFuayI6ICJ0cnVlIgp9Cg==

if I rename the variable from blank to blanks, the logic works correctly.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions