4 Replies Latest reply on Jul 26, 2016 11:58 AM by 15cfe4c80404b1773e4e27690070c9bc9d80949c

    velocity Script with if else condition is not working right



      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