Location: PHPKode > projects > SithTemplate > SithTemplate-1.1/docs/examples/stdlib/00_tag_for_empty.html
{# assumptions: entries is a non-empty array, tags is an empty array #}

{# this will output the entries array #}
{% for entry in entries %}
 {{ entry }}
{% empty %}
 No entries.
{% endfor %}

{# this will output "No tags." #}
{% for tag in tags %}
 {{ tag }}
{% empty %}
 No tags.
{% endfor %}
Return current item: SithTemplate