Conditionals

Explains how to create conditions in templates.

if, elif, and else tags

These tags are used to evaluate a variable. If that variable is “true,” the contents of the block will be displayed. ...