ItemCreator:Item.Field.First

Version: - boolean  

Summary

Returns True if the item field is the first in the list.

Settings

The value is generated automatically.

Examples

Outputting the template tag

@GetBoolean("ItemCreator:Item.Field.First")

Check if tag has a value

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

Assign tag to a value for later use

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

Outputting the template tag

<!--@ItemCreator:Item.Field.First-->

Check if boolean has a value

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