{% load variables filtertags %} {% ifnotequal improvement None %} {% assign "positive" to improvement_direction %} {% if improvement|is_lt:0 %} {% assign "negative" to improvement_direction %} {% endif %} {{ improvement|stringformat:"d" }} % {% else %} N/A {% endifnotequal %}