Ecom:DiscountValidationResult.CampaignName

Version: 9.9.0 string  

Summary

Returns compaign name. 

Settings

This relates to value of option set in the discount definition.

Examples

Outputting the template tag

@GetString("Ecom:DiscountValidationResult.CampaignName")

Check if tag has a value

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

Assign tag to a value for later use

@{ string storedTag = GetString("Ecom:DiscountValidationResult.CampaignName"); }

Outputting the template tag

<!--@Ecom:DiscountValidationResult.CampaignName-->

Check if string has a value

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