{% if appsec.high is not None %} {% with h=appsec.high|length w=appsec.warning|length i=appsec.info|length s=appsec.secure|length hs=appsec.hotspot|length %} {{ h }} High {{ w }} Warning {{ i }} Info {{ s }} Secure {{ hs }} Hotspot {% endwith %} {% endif %}