UserManagement:User.LastName

Version: - string  

Summary

Returns the last name of the user.

Settings

The value is based on the Last name input field for a user.

(User Management > User > User tab > Personal panel > Last name)

Examples

Outputting the template tag

@GetString("UserManagement:User.LastName")

Check if tag has a value

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

Assign tag to a value for later use

@{ string storedTag = GetString("UserManagement:User.LastName"); }

Outputting the template tag

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

Check if string has a value

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