Version: - boolean  


Returns the value "True" if the user is allowed backend login.


The value is based on the Allow backend login field for a user.

(User Management > User > User tab > Settings section > Allow backend login)


Outputting the template tag


Check if tag has a value

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

Assign tag to a value for later use

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

Outputting the template tag


Check if boolean has a value

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