UserName

Version: - string  

Summary

Returns the user name of the secundary user.

Settings

The value is based on the User name input field for the secundary user.

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

Examples

Outputting the template tag

@GetString("UserName")

Check if tag has a value

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

Assign tag to a value for later use

@{ string storedTag = GetString("UserName"); }

Outputting the template tag

<!--@UserName-->

Check if string has a value

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