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