ElementID
Version: - stringSummary
Returns the ID of the maps element.
Settings
The value is generated automatically.
Examples
Outputting the template tag
@GetString("ElementID")
Check if tag has a value
@if(!string.IsNullOrWhiteSpace(GetString("ElementID"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
string storedTag = GetString("ElementID");
}
Outputting the template tag
<!--@ElementID-->
Check if string has a value
<!--@If Defined(@ElementID)-->
Let's output this tag here: <strong><!--@ElementID--></strong>
<!--@EndIf(@ElementID)-->