Liquex.Tag.UnlessTag (liquex v0.9.0) View Source

The opposite of if – executes a block of code only if a certain condition is not met.

Input

{% unless product.title == "Awesome Shoes" %}
  These shoes are not awesome.
{% endunless %}

Output

These shoes are not awesome.

This would be the equivalent of doing the following:

{% if product.title != "Awesome Shoes" %}
  These shoes are not awesome.
{% endif %}

Link to this section Summary

Functions

Callback implementation for Liquex.Tag.parse/0.

Callback implementation for Liquex.Tag.render/2.

Link to this section Functions

Callback implementation for Liquex.Tag.parse/0.

Callback implementation for Liquex.Tag.render/2.