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("VatRegNumber")

Check if tag has a value

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

Assign tag to a value for later use

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

Outputting the template tag

<!--@VatRegNumber-->

Check if string has a value

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