Câu 7: Salesforce Certified Marketing Cloud Developer
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 AMPscript logic should be used t…
Nội dung câu hỏi
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 AMPscript logic should be used to determine the background color of each table row within the loop?
Các lựa chọn
Đáp án được giữ gọn theo nhãn A, B, C, D trong phần bình chọn tương tác.
- A. %%[ IF MOD(@numerator,2) = 1 THEN SET @color = 'Red' ELSE SET @color = 'White' ENDIF ]%% — đáp án hiện tại
- B. %%[ IF SUBSTRING(DIVIDE(@numerator,2),l) = 1 THEN SET @color = 'Red' ELSE SET @color = 'White' ENDIF ]%%
- C. %%[ IF @numerator/2 = 1 THEN SET @color = 'Red' ELSE SET @color = 'White' ENDIF ]%%
Cộng đồng
0 bình luận công khai. Tên thành viên được ẩn một phần.