UserManagement:User.EmailAllowed

Version: - boolean  

Summary

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

Settings

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

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

Examples

Outputting the template tag

@GetBoolean("UserManagement:User.EmailAllowed")

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

<!--@UserManagement:User.EmailAllowed-->

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)-->