Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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
%%[ endif ]%%
%%[ next @i ]%%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.