Last active
July 2, 2019 20:49
-
-
Save wvpv/0080b50d7ea04c6300159d853bc44d9f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%%[ | |
var @i, @rows, @row, @productName, @prevProductName, @rowsToReturn | |
set @rowsToReturn = 0 /* up to 2000 */ | |
set @rows = LookupOrderedRows("SubscriberProducts" ,@rowsToReturn, "ProductName asc", "EmailAddress",emailaddr) | |
set @prevProductName = "" | |
for @i = 1 to RowCount(@rows) DO | |
set @row = Row(@rows,@i) | |
set @ProductName = Field(@row, "ProductName") | |
if empty(@prevProductName) or @productName != @prevProductName then | |
set @prevProductName = @productName | |
]%% | |
<h1>%%=v(@productName)=%%</h1> | |
%%[ endif ]%% | |
%%[ next @i ]%% |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment