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

Avatar

Avatar
Give Back
Level 1
irenek99913287
Level 1

Like

1 like

Total Posts

4 posts

Correct reply

0 solutions
Top badges earned
Give Back
Ignite 1
Validate 1
Boost 1
View profile

Avatar
Give Back
Level 1
irenek99913287
Level 1

Like

1 like

Total Posts

4 posts

Correct reply

0 solutions
Top badges earned
Give Back
Ignite 1
Validate 1
Boost 1
View profile
irenek99913287
Level 1

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
Give Back 50
Level 10
florentlb
Level 10

Likes

237 likes

Total Posts

1,109 posts

Correct reply

239 solutions
Top badges earned
Give Back 50
Give Back 5
Give Back 3
Give Back 25
Give Back 200
View profile

Avatar
Give Back 50
Level 10
florentlb
Level 10

Likes

237 likes

Total Posts

1,109 posts

Correct reply

239 solutions
Top badges earned
Give Back 50
Give Back 5
Give Back 3
Give Back 25
Give Back 200
View profile
florentlb
Level 10

18-04-2018

Hi,

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

Hope this helps,

Florent

Answers (0)