{%- if state.doctor.status == "ok" -%} doctor ✓ {%- else -%} {%- set count = state.doctor.findings | length -%} doctor: {{ count }} {{ state.doctor.status }}{{ "" if count == 1 else "s" }} {% endif %} Re-check