ParagraphID

Version: - integer  

Summary

Returns the ID of the current paragraph.

Settings

The value is generated automatically.

Examples

Outputting the template tag

@GetInteger("ParagraphID")

Check if tag has a value

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

Assign tag to a value for later use

@{ int storedTag = GetInteger("ParagraphID"); }

Outputting the template tag

<!--@ParagraphID-->

Check if integer has a value

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