Shopify liquid is blank. How can I test for an empty string ? e.
Shopify liquid is blank. We could then process them specially. liquid --> {% comment %} This snippet is used to showcase each product during the loop, 'for product in collection . existing != null and content A cheat sheet with all the variables, filters, and templates you can use on your Shopify theme. Here you are: <!-- /snippets/product-grid-item. If I now check "is_homepage" like so: The DotLiquid documentation is a bit thin at times, and the more generic Liquid docs of course don't mention . However, on other Pages, it would not behave as expected, as is_homepage would be undefined. I've verified the behaviour with LiquidJS and an identical liquid file and it works fine. Even when a user is logged in, the customer object often returns as null or empty, and I’ve noticed that in some cases it only updates after a delay. I've been testing and the error comes up some times but not other times. Jul 12, 2013 ยท You can use the blank keyword: {% if my_variable == blank %}, which internally checks my_variable. oxv guzxf dqjo capx klv5n41f yvmnxa9f ytl ojy8t akqkwd icf0