2008-05-15 ループの回数で処理するしないとか php smarty {if $smarty.section.file.iteration%2 == 0}{/if} rubyだと hoge.each_with_index do |i, count| p count #ループのn回目 end