Ecom:Region.RegionCode

Version: - string  

Summary

Returns region code, based on value of Code field in Country>Regions/States definition.

Settings

The value is generated automatically.

Examples

Outputting the template tag

@GetString("Ecom:Region.RegionCode")

Check if tag has a value

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

Assign tag to a value for later use

@{ string storedTag = GetString("Ecom:Region.RegionCode"); }

Outputting the template tag

<!--@Ecom:Region.RegionCode-->

Check if string has a value

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