UserManagement:User.Active

Version: - boolean  

Summary

Returns the value "True" if the user is active.

Settings

The value is based on the Active field for a user.

(User Management > User > Options tab > Validity section > Active)

Examples

Outputting the template tag

@GetBoolean("UserManagement:User.Active")

Check if tag has a value

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

Assign tag to a value for later use

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

Outputting the template tag

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

Check if boolean has a value

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