I have MyCustomMacro that returns me list of strings. I need to show this list with custom separator beetwen list elements.
{%
foreach (ev in MyCustomMacro("events") )
{
ev + " | ";
};
#%}
but this code also addes " | " after last element.
How can i check that element is last in the list?