Version: - boolean  


Returns True when Email permission is selected for the user (the user has accepted to receive e-mails send from E-mail Marketing).


The value is based on the E-mail permission input field for a user.

(User Management > User > User tab > Personal panel > E-mail permission)


Outputting the template tag


Check if tag has a value

@if(!bool.IsNullOrWhiteSpace(GetBoolean("UserManagement:User.EmailAllowed"))) { @* Tag has value, so let's do something useful here. *@ }

Assign tag to a value for later use

@{ bool storedTag = GetBoolean("UserManagement:User.EmailAllowed"); }

Outputting the template tag


Check if boolean has a value

<!--@If Defined(@UserManagement:User.EmailAllowed)--> Let's output this tag here: <strong><!--@UserManagement:User.EmailAllowed--></strong> <!--@EndIf(@UserManagement:User.EmailAllowed)-->