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