Product.CustomField.Option.IsSelected
Version: - stringSummary
Returns True if the option is selected
Settings
The value is generated automatically.
Examples
Outputting the template tag
@GetString("Product.CustomField.Option.IsSelected")
Check if tag has a value
@if(!string.IsNullOrWhiteSpace(GetString("Product.CustomField.Option.IsSelected"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
string storedTag = GetString("Product.CustomField.Option.IsSelected");
}
Outputting the template tag
<!--@Product.CustomField.Option.IsSelected-->
Check if string has a value
<!--@If Defined(@Product.CustomField.Option.IsSelected)-->
Let's output this tag here: <strong><!--@Product.CustomField.Option.IsSelected--></strong>
<!--@EndIf(@Product.CustomField.Option.IsSelected)-->