Always bear in mind that anything inside double quotes gets executed as python. Therefor, the followign lines are not doing what you intend: Peter Hernberg wrote: > <dtml-if "sequence-index < (numStories - 1)"> > <dtml-if "sequence-index == 0"> try these instead: <dtml-if "_['sequence-index'] < (numStories - 1)"> <dtml-if "_['sequence-index'] == 0"> cheers, Chris