I have a variable that contains a list of items, separated with comma and I am trying to run on all values and if last latter equals the latter p - Store all of these values in a different custom field.
was using "endsWith" function but didn't return anything, and was my latest try was the below:
<span>{{#Variablen.split(",")}} </span><span>{{#if(trim(.).matches(".*p$"))}} </span><span>{{trim(.)}}{{^last}}, {{/last}} </span><span>{{/}} </span><span>{{/}}<br><br>Any suggestions?</span>