City

Version: - string  

Summary

Returns the city of the user.

Settings

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

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

Examples

Outputting the template tag

@GetString("City")

Check if tag has a value

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

Assign tag to a value for later use

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

Outputting the template tag

<!--@City-->

Check if string has a value

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