QuestionQ47Verified/Scripting and AutomationCopy linkReport a problemAsk AstroTutorSave questionWhat is the purpose of the following IF statement? ATo handle when images are brokenBTo handle when no row is returned by the LookupRows functionCTo handle when there are multiple records in the data extension for the subscriberShow AnswerAnswerExplanationLookupRows 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 moreSalesforce Marketing Cloud AMPscript LookupRows functionSalesforce Marketing Cloud AMPscript RowCount functionShow comments0Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion