Replies: 1 comment
-
|
{% assign foo = "" %}
{% if foo == blank %}BLANK{% else %}NOT BLANK{% endif %}This behavior is consistent with Shopify/liquid. Note In Shopify/liquid, there are some subtle differences between |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
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
blanktoblanks, the logic works correctly.Beta Was this translation helpful? Give feedback.
All reactions