ItemPublisher:Item.Field.First
Version: - booleanSummary
Returns True if the item field is the first in the list.
Settings
The value is generated automatically.
Examples
Outputting the template tag
@GetBoolean("ItemPublisher:Item.Field.First")
Check if tag has a value
@if(!bool.IsNullOrWhiteSpace(GetBoolean("ItemPublisher:Item.Field.First"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
bool storedTag = GetBoolean("ItemPublisher:Item.Field.First");
}
Outputting the template tag
<!--@ItemPublisher:Item.Field.First-->
Check if boolean has a value
<!--@If Defined(@ItemPublisher:Item.Field.First)-->
Let's output this tag here: <strong><!--@ItemPublisher:Item.Field.First--></strong>
<!--@EndIf(@ItemPublisher:Item.Field.First)-->