How to filter a list in Netsuite PDF/Email template?
I want to make a list of filtered items in Netsuite HTML/email template. Seems that this line of code wont work on it using freemarker.
<#assign xs = [1, -2, 3, 4, -5]> Positives: <#list xs?filter(x -> x > 0) as x>${x} </#list> Negatives: <#list xs?filter(x -> x < 0) as x>${x} </#list>
Could you guys give me some insights on how to achieve this? Thank you so much in advance! I'm a beginner and been searching this a lot and unfortunately no luck at all.