[%- FOR i IN [1,2,3,4,5,6] -%] [%- NEXT IF i % 2 == 0 -%] I = [% i %]; [%- END -%]