Facet.OptionCount
Version: - integerSummary
Returns count of options the facet can take on.
Settings
The value is generated automatically, depend on the facet type.
Examples
Outputting the template tag
@GetInteger("Facet.OptionCount")
Check if tag has a value
@if(!int.IsNullOrWhiteSpace(GetInteger("Facet.OptionCount"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
int storedTag = GetInteger("Facet.OptionCount");
}
Outputting the template tag
<!--@Facet.OptionCount-->
Check if integer has a value
<!--@If Defined(@Facet.OptionCount)-->
Let's output this tag here: <strong><!--@Facet.OptionCount--></strong>
<!--@EndIf(@Facet.OptionCount)-->