I have an email where if the join to the content Data Extension produces no record, I don't want to send to that email address.
is there any way through ampscript to error off that record and not include it in the send?
example:
%%[
SET @contentRowset = lookuprows("HR_ContentTable","template",@template,"subnum",@subnum)
if rowcount(@contentRowset) > 0 then
SET @contentRow = row(@contentRowset,1)
Set @subline = field(@contentRow,"subline")
else
ERROR THE RECORD SOME HOW
endif
]%%