
Check if email has already downloaded whitepaper
Source:R/whitepaper.R
has_downloaded_whitepaper.RdQuick lookup to avoid duplicate download prompts or to gate content
based on prior engagement. Use this in download flows to personalize
the user experience or to show "Welcome back" messages to returning
visitors. More efficient than get_downloads_by_email() when you only
need a boolean result.
Arguments
Character string. Email address to check. Validated using
is_valid_email()before query.- cn
DBI connection object or NULL. Database connection from
artcore::dbc("artsite"). If NULL (default), creates and closes connection automatically.
Value
Logical. TRUE if email has at least one download on record,
FALSE if no downloads found. Use this to branch UI logic or personalize
messaging.
See also
Other whitepaper:
get_downloads_by_email(),
get_recent_downloads(),
get_whitepaper_stats(),
log_whitepaper_download(),
whitepaper