Liquex.Tag.IfTag (liquex v0.15.0)

Copy Markdown View Source

Executes a block of code only if a certain condition is true.

Input

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

Output

These shoes are awesome!

Summary

Functions

else_tag()

elsif_tag()