twig check if value in array code example Example: twig string is in array {% if color in ['red', 'blue', 'orange'] %} ... {% endif %}