In Listrak, sometimes we want to do something when a segment has a value or not. This post is about the code snippet for that.
The code snippet to use in the SCA HTML template for this kind of task is to use the following code format:
[Equal:[=Root:Customer.FirstName:""],"","",""]
Assume that we want to say “Hi” when the FirstName is not present and say “Dear” when the FirstName is present, then we would use the following code snippet:
[Equal:[=Root:Customer.FirstName:""],"","Hi","Dear"]
0 Comments