DWUsers:User:Country
Version: - stringSummary
Returns the Country of an extranet user.
Settings
The value is based on the Country input field in the User details section for the user.
Examples
Outputting the template tag
@GetString("DWUsers:User:Country")
Check if tag has a value
@if(!string.IsNullOrWhiteSpace(GetString("DWUsers:User:Country"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
string storedTag = GetString("DWUsers:User:Country");
}
Outputting the template tag
<!--@DWUsers:User:Country-->
Check if string has a value
<!--@If Defined(@DWUsers:User:Country)-->
Let's output this tag here: <strong><!--@DWUsers:User:Country--></strong>
<!--@EndIf(@DWUsers:User:Country)-->