-
Notifications
You must be signed in to change notification settings - Fork 15
Differences
Mike Bridge edited this page Aug 14, 2015
·
24 revisions
Truth tests are slightly different between Shopify Liquid and Liquid.NET.
There is no such thing as a "drop" or any other special class in the Liquid.NET context. Anything that looks like an object is a hash.
Liquid.NET can group if expressions using parentheses, which is [not currently possible in liquid].[(https://github.com/Shopify/liquid/issues/138) also].
{% if (false and true) or true %}Result #1 is true{% endif %}
{% if false and (true or true) %}Result #2 is true{% endif %}==> Result #1 is true
You can negate an expression with not:
{% if not false %}Not false is true.{% endif %}===> Not false is true.