Page:Ecom.ProductList.Pages[X].EndsWithLastPage

Version: - boolean  

Summary

Returns True if the current range ends with last product.

Settings

The value is generated automatically.

Remarks

The tag is rendered when the Product Catalog module is available on the page.

Examples

Outputting the template tag

@GetBoolean("Page:Ecom.ProductList.Pages[X].EndsWithLastPage")

Check if tag has a value

@if(!bool.IsNullOrWhiteSpace(GetBoolean("Page:Ecom.ProductList.Pages[X].EndsWithLastPage"))) { @* Tag has value, so let's do something useful here. *@ }

Assign tag to a value for later use

@{ bool storedTag = GetBoolean("Page:Ecom.ProductList.Pages[X].EndsWithLastPage"); }

Outputting the template tag

<!--@Page:Ecom.ProductList.Pages[X].EndsWithLastPage-->

Check if boolean has a value

<!--@If Defined(@Page:Ecom.ProductList.Pages[X].EndsWithLastPage)--> Let's output this tag here: <strong><!--@Page:Ecom.ProductList.Pages[X].EndsWithLastPage--></strong> <!--@EndIf(@Page:Ecom.ProductList.Pages[X].EndsWithLastPage)-->