Conditions In LO email subject line

Options

I have what seems like it should be an easy question: We want to conditionalize our subject line. With the out of the box option from LO we can do this: [[S1:first_name:Donor]]. If the constituent has a first name it uses that if not it uses “Donor”. What we want is to first see if the constituent has a nickname (a field in our LO instance [[S1:nickname]]) and if not then show first name. I have tried fiddling with the syntax and can not seem to get it to work. Someone has figured this out already I assume?

Any help would be appreciated.

Tagged:

Comments

  • @Mark Koopman--

    We've had success using the bracket conditionals in the subject.

    For example, if we wanted to use a trail name (custom_string21 in our db), the following would check to see if it is present in the constituent's record--if not, a generic “today” renders, if custom_string21 is present, it renders the trail name.

    Heading to a great trail [[?xx::x[[S1:custom_string21]]x::today::like [[S1:custom_string21]]]]?

    If not present: “Heading to a great trail today?”
    If present: “Heading to a great trail like [TRAILNAME]?”

    Be sure to test in the email preview mode (within the HTML content step) to test how it will render with different constituents.

    --Ryan

Categories