コミュニティアチーブメントバーを展開する。

Submissions are now open for the 2026 Adobe Experience Maker Awards

Mark Solution

この会話は、活動がないためロックされています。新しい投稿を作成してください。

解決済み

Email Script

Avatar

Level 1

An Agency has created this Email Script Token for us: 

 My question: What does the highlighted mean? 

 

#if ( $lead.Salutation.matches("^(?i:m)$") && !$lead.LastName.isEmpty() )

Dear Mr ${lead.LastName}##

#elseif ( $lead.Salutation.matches("^(?i:f)$") && !$lead.LastName.isEmpty() )

Dear Ms ${lead.LastName}##

#else

Dear Sir or Madam##

#end

1 受け入れられたソリューション

Avatar

正解者
Employee Advisor

that's regular expressions

the ?i: refers to a case-insensitive comparison

the ^..$ refers to start and end of string

=> the regex will match to m / M in the first condition and f / F in the 2nd

元の投稿で解決策を見る

1 返信

Avatar

正解者
Employee Advisor

that's regular expressions

the ?i: refers to a case-insensitive comparison

the ^..$ refers to start and end of string

=> the regex will match to m / M in the first condition and f / F in the 2nd