Skip to content
Mike Bridge edited this page Aug 14, 2015 · 24 revisions

Differences from Shopify Liquid:

Incompatibilities

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.

Additions

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.

Clone this wiki locally