Ecom:VariantCombination.Selected
Version: - booleanSummary
Returns True if the variant is selected in frontend.
Settings
The value is generated automatically.
Examples
Outputting the template tag
@GetBoolean("Ecom:VariantCombination.Selected")
Check if tag has a value
@if(!bool.IsNullOrWhiteSpace(GetBoolean("Ecom:VariantCombination.Selected"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
bool storedTag = GetBoolean("Ecom:VariantCombination.Selected");
}
Outputting the template tag
<!--@Ecom:VariantCombination.Selected-->
Check if boolean has a value
<!--@If Defined(@Ecom:VariantCombination.Selected)-->
Let's output this tag here: <strong><!--@Ecom:VariantCombination.Selected--></strong>
<!--@EndIf(@Ecom:VariantCombination.Selected)-->