DwSearchResults

Version: - integer  

Summary

Returns the total number of search results.

Settings

The value is generated automatically.

Examples

Outputting the template tag

@GetInteger("DwSearchResults")

Check if tag has a value

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

Assign tag to a value for later use

@{ int storedTag = GetInteger("DwSearchResults"); }

Outputting the template tag

<!--@DwSearchResults-->

Check if integer has a value

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