Ecom:VariantCombination.VariantText
Version: - stringSummary
Returns a string based on the names of the variant options in the variant combination.
Settings
The value is based on the Name input fields for the variant options.
Examples
Outputting the template tag
@GetString("Ecom:VariantCombination.VariantText")
Check if tag has a value
@if(!string.IsNullOrWhiteSpace(GetString("Ecom:VariantCombination.VariantText"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
string storedTag = GetString("Ecom:VariantCombination.VariantText");
}
Outputting the template tag
<!--@Ecom:VariantCombination.VariantText-->
Check if string has a value
<!--@If Defined(@Ecom:VariantCombination.VariantText)-->
Let's output this tag here: <strong><!--@Ecom:VariantCombination.VariantText--></strong>
<!--@EndIf(@Ecom:VariantCombination.VariantText)-->