--TEST-- "for" tag --TEMPLATE-- {% for i, item in items if i > 0 %} {{ loop.last }} {% endfor %} --DATA-- return ['items' => ['a', 'b']] --EXCEPTION-- Twig\Error\SyntaxError: The "loop.last" variable is not defined when looping with a condition in "index.twig" at line 3.