Slot with multiple items - how to get a single item in Velocity template?

I am retrieving a slot in my velocity template using the #slot macro, i.e.

#slot(‘mwImageSlot’ ‘’ ‘’ ‘’ ‘’ ‘template=mwImage_MainImageSnippetAnchorTag’)

This slot has two content items in it, and I want to use them separately. How do I address the individual nodes/items/objects within the object that is returned from this macro? Does the macro return a string? Is there a different slot macro I should use to have the slot contents in a form that I can manipulate?

-Kathleen

In 6.5.2…

#initslot("__slotname__" "__parameters__")
  #if($sys.currentslot.relresults.size() > 0)
     #foreach( $relresult in $sys.currentslot.relresults )
       ## Do stuff here with $relresult
     #end
  #end
#endslot("__slotname__")

Thanks, Andrew. I’ll give that a try.

-Kathleen