Fork me on GitHub

iterable

iterable

The iterable test checks if a variable implements java.lang.Iterable.

{% if users is iterable %}
	{% for user in users %}
		...
	{% endfor %}
{% endif %}