How to check if at least one key of array is true?
-
Hi there,
I have this code:
{% if member %} {% for item in member %} {% if item.status == 'wcm-active' %} ... {% endif %} {% endfor %} {% endif %}
How can I get to simplify this code with something like {% if member.item.status %}? I don’t even know if this is possible.
I’m trying to check if AT LEAST one item in the loop of member have the ‘wcm-active’ status.
Thanks for advance for the great plugin! Been using it in all my projects.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘How to check if at least one key of array is true?’ is closed to new replies.