Pre-Winter Sale Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: pass65

Salesforce Certified Marketing Cloud Engagement Developer MCE-Dev-201 Question # 24 Topic 3 Discussion

Salesforce Certified Marketing Cloud Engagement Developer MCE-Dev-201 Question # 24 Topic 3 Discussion

MCE-Dev-201 Exam Topic 3 Question 24 Discussion:
Question #: 24
Topic #: 3

A developer wants to create an HTML table where rows will alternate background colors between white and red.The developer does not know how many rows will be sent within each email, and decides to use a loop and assigns the RowCount() of the table rows to the variable @numerator. What is the recommended AMPscript logic to determine the background color of each table row within the loop?


A.

%%[IF DIVIDE(@numerator,2) =1 THEN SET @color = 'Red' ELSE SET @color = 'White' ENDIF]%%


B.

%%[IF SUBSTRING(DIVIDE(@numerator,2),1) = 1 THEN SET @color = 'Red' ELSE SET @color = 'White' ENDIF]%%


C.

%%[IF @numerator/2 = 1 THENSET @color = 'Red' ELSE SET @color = 'White' ENDIF]%%


D.

%%[IF MOD(@numerator,2) = 1 THEN SET @color = 'Red' ELSE SET @color = 'White' ENDIF]%%


Get Premium MCE-Dev-201 Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.