AnsweredAssumed Answered

velocity Script with if else condition is not working right

Question asked by 4fb13645ec63a149e271180d9b9572456ab92ec1 on Jul 22, 2016
Latest reply on Jul 26, 2016 by 15cfe4c80404b1773e4e27690070c9bc9d80949c



I'm writing if else condition base on a custom object data, where if the customer matches it should show content A and if not, it should show content B. However both content A and B is showing up in the email. A shorten version of the code is below, any idea on what can be adjusted so it works correctly?



#foreach($customer in $customer_cList)


#if(${customer.customerID} == $matched)


show content A








show content B