Item.Page.Field.First

Version: - boolean  

Summary

Returns True if the item field used in page properties is the first in the list.

Settings

The tag returns [blank] or True. If it returns True then the field is the first in the list.

Examples

Outputting the template tag

@GetBoolean("Item.Page.Field.First")

Check if tag has a value

@if(!bool.IsNullOrWhiteSpace(GetBoolean("Item.Page.Field.First"))) { @* Tag has value, so let's do something useful here. *@ }

Assign tag to a value for later use

@{ bool storedTag = GetBoolean("Item.Page.Field.First"); }

Outputting the template tag

<!--@Item.Page.Field.First-->

Check if boolean has a value

<!--@If Defined(@Item.Page.Field.First)--> Let's output this tag here: <strong><!--@Item.Page.Field.First--></strong> <!--@EndIf(@Item.Page.Field.First)-->