How to use a list of strings in Freemarker -


i'm trying use list of industries determine output text. example, if industry distribution & wholesale or ecommerce or manufacturing display text, else display other text.

i'm having issues following code:

<#if (customer.custentity_esc_industry)=["distribution \a wholesale","ecommerce","manufacturing"]>some text<#else>some other text</#if> 

however can't seem make work correctly... ideas?

<#if ["distribution \a wholesale", "ecommerce", "manufacturing"]          ?seq_contains(customer.custentity_esc_industry)>   text <#else>   other text </#if> 

or (?then requires 2.3.23):

${["distribution \a wholesale", "ecommerce", "manufacturing"]   ?seq_contains(customer.custentity_esc_industry)   ?then("some text", "some other text")} 

Comments