Locked

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

32

Likes

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
Adobe Community Professional ,
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

Likes

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