or twig if code example
Example 1: twig if
{% if users %}
{% for user in users %}
- {{ user.username|e }}
{% endfor %}
{% endif %}
Example 2: twig if
{% if not user.subscribed %}
You are not subscribed to our mailing list.
{% endif %}