Skip to main content
Participant
March 15, 2022
Question

Condition if "contains"

  • March 15, 2022
  • 1 reply
  • 220 views

<% if (context.profile.firstName == "Charly" || context.profile.firstName == "CHARLES") { %>You are my favorite Charles in the world!<% } else { %><%= context.profile.firstName %>, you are my favourite boy.<%} %>

 

I have the condition above for a subject in Adobe Campaign Standard, and I would need to replace the two conditions with one that said; x contains “charl” (not case sensitive). String.includes and .includes() don't work. Any ideas?

    This topic has been closed for replies.

    1 reply

    John T Smith
    Community Expert
    Community Expert
    March 15, 2022

    Not the place to ask

    You need to go to https://experienceleaguecommunities.adobe.com/
    -https://www.adobe.com/products/livecycle.html
    -AEM Adobe Experience Manager
    -Adobe Experience Platform
    -Adobe Analytics
    -Adobe Campaign
    -Adobe Target
    -Adobe Partners Network
    -Adobe Audience Manager
    -Adobe Advertising Cloud
    -Marketo