I have the following dictionary passed to a render function, with sources being a list of strings and title being a string potentially equal to one of the strings in sources
Sorry for comment in an old post but if you want to use an else if statement this will help you
{% if title == source %} Do This {% elif title == value %} Do This {% else %} Do This {% endif %}
For more info see Django Documentation