• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

Condition if "contains"

New Here ,
Mar 15, 2022 Mar 15, 2022

Copy link to clipboard

Copied

<% 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?

Views

144

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 15, 2022 Mar 15, 2022

Copy link to clipboard

Copied

LATEST

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines