Comments.Rating.Rounded2
Version: - doubleSummary
Returns a generic avarage value for the ratings - rounded to nearest half.
Settings
The value is generated automatically.
Examples
Outputting the template tag
@GetDouble("Comments.Rating.Rounded2")
Check if tag has a value
@if(!double.IsNullOrWhiteSpace(GetDouble("Comments.Rating.Rounded2"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
double storedTag = GetDouble("Comments.Rating.Rounded2");
}
Outputting the template tag
<!--@Comments.Rating.Rounded2-->
Check if double has a value
<!--@If Defined(@Comments.Rating.Rounded2)-->
Let's output this tag here: <strong><!--@Comments.Rating.Rounded2--></strong>
<!--@EndIf(@Comments.Rating.Rounded2)-->