if string is twig code example Example: test if string in string twig {# returns true #} {{ 1 in [1, 2, 3] }} {{ 'cd' in 'abcde' }}