Iterate over an array
example variable result of variable users: [ A, B , C ]
Body:
{{#users}}
"{{.}}"
{{/users}}
Result:
A,B,C,
Iterate over an array with Users and get email
example variable result of variable users: [ rick(rick), mr.bot(mr.bot) , cc (cc) ]
Body:
{{#users}}
"{{.emailAddress}}"
{{/users}}
Result:
rick@rixter.se,mr.bot@rixter.se,cc@rixter.se,
Removing trailing comma in array
example variable result of variable users: [ A, B , C ]
Body:
{{#users}}
"{{.}}"
{{/users}}
{{^users}}
"{{.}}"
{{/users}}
Result:
A,B,C