Skip to content

Instantly share code, notes, and snippets.

@zuzannamj
Created September 27, 2019 20:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zuzannamj/a3c0371f17eb9097de8f32ba1f1fcfae to your computer and use it in GitHub Desktop.
Save zuzannamj/a3c0371f17eb9097de8f32ba1f1fcfae to your computer and use it in GitHub Desktop.
%%[
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