ifequal Tag

Logic

Argument(s): values to compare.

Documentation

The ifequal and ifnotequal tags are deprecated in Django 3.1. Use {% if a == b %} and {% if a != b %} instead.

Commentary

Do not use.


Did we get something wrong? Is there a use case for the ifequal tag that we should add? Please let us know.

Send Feedback

Official Documentation
This page last updated on Oct. 30, 2022, 1:22 p.m. EST