Currency

Version: - string  

Summary

Returns the currency of the user.

Settings

The value is based on the currency selected in the Currency dropdown for a user.

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

Examples

Outputting the template tag

@GetString("Currency")

Check if tag has a value

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

Assign tag to a value for later use

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

Outputting the template tag

<!--@Currency-->

Check if string has a value

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