Conditional Content - if/else statements with "starts with"

Avatar

Avatar

irenek99913287

Avatar

irenek99913287

irenek99913287

03-04-2018

Hi,

I'm trying to create a conditional content within my email, but rather than state every single value in the system, I wanted to do something like "if recipient.email starts with 'i' ) { show a picture of an "I" or something.  I can't seem to figure out how to write the statement to evaluate the database attribute with "starts with".  Can someone help?

Thanks!!

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

florentlb

Total Posts

1.1K

Likes

234

Correct Answer

239

Avatar

florentlb

Total Posts

1.1K

Likes

234

Correct Answer

239
florentlb

18-04-2018

Hi,

This is relying on JavaScript syntax. For example: rcp.firstName.startsWith(“Flo”)

Hope this helps,

Florent

Answers (0)