Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
%%[
set @email = emailaddr
if (@email != "") then
set @rows = LookupRows("LeadsDataExtension","Email", @email)
set @rowCount = rowcount(@rows)
if @rowCount > 0 then
set @row = Row(@rows, 1)
set @UID = Field(@row,"UID")
endif
endif
]%%
<span style="color: green">@email:</span> %%=v(@email)=%%
<span style="color: green">@rowCount:</span> %%=v(@rowCount)=%%
<span style="color: green">@UID:</span> %%=v(@UID)=%%
@email: test@test.com
@rowCount: 0
@UID:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment