UserManagement:User.VatRegNumber

Version: - string  

Summary

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

Settings

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

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

Examples

Outputting the template tag

@GetString("UserManagement:User.VatRegNumber")

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

<!--@UserManagement:User.VatRegNumber-->

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)-->