A

Admin • 802.91K Points
Coach

Q. Which template tag is used for conditional logic in Django templates?

  • (A) {% logic %}
  • (B) {% check %}
  • (C) {% if %}
  • (D) {% condition %}
  • Correct Answer - Option(C)
  • Views: 4
  • Filed under category Django
  • Hashtags:

Explanation by: Admin
`{% if %}` is used to apply conditional logic in templates.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.