Skip to content

Checking if user is newsletter subscriber or not

I want to check that the user is newsletter subscriber or not in email footer template in admin panel. I am unable to find a variable which can check like this:

{{ if($userIsSubscriber) { //Code//}}}

I know above syntax is wrong but I need code somewhat like this as I want to show some specific part of template to our user who are subscribers.

Thanks