v1.9.1
Executes a block of code only if a certain condition is true.
if
Input
1 | {% if product.title == "Awesome Shoes" %} |
Output
1 | These shoes are awesome! |
elsif / else
Adds more conditions within an if or unless block.
Input
1 | <!-- If customer.name = "anonymous" --> |
Output
1 | Hey Anonymous! |