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.
Rookie Asked on March 21, 2021 in How To's.
Add Comment
0 Answer(s)

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.
  • This site made possible by our sponsors:   Tipalti   Celigo   Limebox   Become a Sponsor