twig in array

Solutions on MaxInterview for twig in array by the best coders in the world

showing results for - "twig in array"
Nayla
07 Aug 2016
1{% if color in ['red', 'blue', 'orange'] %}
2    ...
3{% endif %}
Valeria
14 Jan 2017
1{{ if myValue in myArray ? 'true' : 'false' }}
2
3{% if myValue in myArray %}
4    // true
5{% endif %}