I have a component in tridion where its metadata design has a field called 'list' which is populated using Categories and Keywords
I used a DWT code to populate items present in the list using the following code using My DWT TBB
<!-- TemplateBeginRepeat name="Metadata.list" -->
<!-- TemplateBeginIf cond="list" -->
@@RenderComponentField('list',TemplateRepeatIndex)@@ ,
<!-- TemplateEndIf -->
<!-- TemplateEndRepeat -->
but Im getting preview as
one,two,three,four,five,
desired output should be like: one,two,three,four,five
so for this i need to get the maximum count of "TemplateRepeatIndex" Is there any inbuilt function to check the same.
using Tridion-sp1,2011.