Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

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

irenek99913287
Level 1
Level 1

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!!

1 Accepted Solution
florentlb
Correct answer by
Level 10
Level 10

Hi,

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

Hope this helps,

Florent

View solution in original post

1 Reply
florentlb
Correct answer by
Level 10
Level 10

Hi,

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

Hope this helps,

Florent

View solution in original post