Conditional Content - if/else statements with "starts with" | Community
Skip to main content
April 4, 2018
Solved

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

  • April 4, 2018
  • 1 reply
  • 3145 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by florentlb

Hi,

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

Hope this helps,

Florent

1 reply

florentlb
florentlbAccepted solution
Level 10
April 18, 2018

Hi,

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

Hope this helps,

Florent