QuestionQ47

Scripting and Automation

What is the purpose of the following IF statement?

Question Image

  • A To handle when images are broken
  • B To handle when no row is returned by the LookupRows function
  • C To handle when there are multiple records in the data extension for the subscriber
Explanation

LookupRows returns a rowset, and RowCount(@rows) > 0 verifies that the rowset contains at least one matching row before Row(@rows, 1) and Field(@row, 'image') are used. When no row is returned, the ELSE branch outputs the fallback image.jpg source.

Learn more

Community Discussion

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