QueryResult.Count

Version: - integer  

Summary

Returns count of results being shown

Settings

The value is generated automatically.

Examples

Outputting the template tag

@GetInteger("QueryResult.Count")

Check if tag has a value

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

Assign tag to a value for later use

@{ int storedTag = GetInteger("QueryResult.Count"); }

Outputting the template tag

<!--@QueryResult.Count-->

Check if integer has a value

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