LastName
Version: - stringSummary
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("LastName")
Check if tag has a value
@if(!string.IsNullOrWhiteSpace(GetString("LastName"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
string storedTag = GetString("LastName");
}
Outputting the template tag
<!--@LastName-->
Check if string has a value
<!--@If Defined(@LastName)-->
Let's output this tag here: <strong><!--@LastName--></strong>
<!--@EndIf(@LastName)-->