QuestionQ108

VerifiedScripting and Automation

A developer built a landing page in CloudPages that returns unique content when subscriber data is found in a related data extension. The developer does not know whether every subscriber has a row in that related data extension and wants default content to display when no subscriber data is found there.

Which best practice should the developer use to control the unique and default content?

Explanation

AMPscript rowsets can be checked with RowCount() to determine whether a data-extension lookup returned any matching records. An IF/ELSE statement can render the unique content when the count is greater than zero and default content when the rowset is empty.

Learn more

Community Discussion

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