Gallery.List.ImageCount

Version: - integer  

Summary

Returns the total number of images.

Settings

The value is generated automatically.

Examples

Outputting the template tag

@GetInteger("Gallery.List.ImageCount")

Check if tag has a value

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

Assign tag to a value for later use

@{ int storedTag = GetInteger("Gallery.List.ImageCount"); }

Outputting the template tag

<!--@Gallery.List.ImageCount-->

Check if integer has a value

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