Logic Tags
- cycle - cycles through list of arguments.
-
firstof
- returns the first argument in a list of arguments that evaluates to
True. - for - for loop.
- for … empty - display text when for loop is empty.
- if - if condition.
- ifchanged - checks if value in loop has changed since last iteration.
-
ifequal
- use
{% if a == b %}instead. -
ifnotequal
- use
{% if a != b %}instead. -
resetcycle
- used to reset a
cycle. - with - caches a variable for reuse.
