Hamish Hudson
 · Author of mystery thrillers

How can I update a field value conditionally using Liquid code? I want to create an automation that updates a field depending on the value of another field. For example, I want to update a field called "Buckets" depending on the first letter of the email address. I've added an action to "SET VALUE FOR A CUSTOM FIELD" and it looks like this. But all that happens is the Liquid code ends up as the field value. Any workaround or suggestions accepted. // Set Buckets to {% if subscriber.email_address | slice: 0 == "j" %} bucket1 {% else %} bucket2 {% endif %} //