QuestionQ122

Scripting and Automation

How should a developer write an Exclusion Script to prevent an email from being sent at send time when comparing a Boolean field in the Sendable Data Extension?

  • A %%=Lookup('Excluded', 'SendBool', 'SubscriberKey', _SubscriberKey)=%%
  • B %%SendBool%% < 1
  • C %%=Lookup('Excluded', 'SendBool', '_SubscriberKey', _SubscriberKey)=%%
Explanation

An exclusion script must resolve to true for subscribers who should be excluded. Marketing Cloud Engagement Boolean data-extension values are represented as 0 or 1, so comparing the sendable data-extension field directly against 1 produces a Boolean exclusion condition without a separate lookup. Salesforce documents that an exclusion filter is AMPscript that evaluates to true or false.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!