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