1👍
✅
I dont know what leftbar
is, but assuming you got all the other stuff right,
{% for tab in leftbar.what_tab %}
{% if tab.type.title %}
{{ tab.type.title}}
{% endif %}
{% ifnotequal forloop.counter leftbar.what_tab %},{% endnotifequal %}
{% endfor %}
Since title
is not nullable, {% if tab.type.title %}
should never be the case.
Source:stackexchange.com