Version: - string  


Returns the customer's company tax registration number/VAT identification number (VATIN) also called CVR in Denmark and VatRegNumber in United Kingdom.


The value is based on the VAT reg number input field for a user.

(User Management > User > User tab > Work > VAT reg number)


Outputting the template tag


Check if tag has a value

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

Assign tag to a value for later use

@{ string storedTag = GetString("UserManagement:User.VatRegNumber"); }

Outputting the template tag


Check if string has a value

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