Iterates through a repeater with optional filter and returns the concatenated output for all items
Syntax
<<[ForEach:Repeater{Filter}[Separator]:Output]>> Client Server
Repeater Required
Tag name of repeater
Filter
Boolean expression to filter repeater items e.g. {'<<Type>>' == 'Primary'}
Separator
Custom separator between the output for each item e.g. [ and ] defaults to a space
Output Required
Text and <<tags>> for each repeater item. Use @Index to refer to the index of the current item e.g. @Index - <<FirstName>> <<LastName>>
Examples
Function | Result |
---|---|
<<[ForEach:Contact:<<FirstName>> <<LastName>>]>> | Joe Bloggs Mary Bloggs Tim Bloggs |
<<[ForEach:Contact[ and ]:<<FirstName>> <<LastName>>]>> | Joe Bloggs and Mary Bloggs and Tim Bloggs |
<<[ForEach:Contact{'<<Type>>' == 'Primary'}[ and ]:<<FirstName>> <<LastName>>]>> | Joe Bloggs and Mary Bloggs |