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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions