v1.9.1
The opposite of if – executes a block of code only if a certain condition is not met.
Input
1 | {% unless product.title == "Awesome Shoes" %} |
Output
1 | These shoes are not awesome. |
This would be the equivalent of doing the following:
1 | {% if product.title != "Awesome Shoes" %} |