Similar to if , but executes a block of code only if a certain condition is not met.

Input

<!-- page.name is set to "about" --> {% unless page . name == "contact" %} It's not the contact page {% endunless %}

Output

It's not the contact page

Which is the same as doing: