views:

172

answers:

1

Hi,

is there anything built-in in Django templates that will allow me to compare two values? Similar to ifequal.

If not - what is the best solution for this?

+6  A: 

There's no built-in way of doing this, but there is a popular template tag to get it done: smart if.

Paolo Bergantino