Comments.TotalCount

Version: - integer  

Summary

Returns the total count of comments including replies.

Settings

The value is generated automatically.

Examples

Outputting the template tag

@GetInteger("Comments.TotalCount")

Check if tag has a value

@if(!int.IsNullOrWhiteSpace(GetInteger("Comments.TotalCount"))) { @* Tag has value, so let's do something useful here. *@ }

Assign tag to a value for later use

@{ int storedTag = GetInteger("Comments.TotalCount"); }

Outputting the template tag

<!--@Comments.TotalCount-->

Check if integer has a value

<!--@If Defined(@Comments.TotalCount)--> Let's output this tag here: <strong><!--@Comments.TotalCount--></strong> <!--@EndIf(@Comments.TotalCount)-->