Forum:FirstAnswer.Author.Group.ParentID
Version: - integerSummary
Returns user group parent ID the author of first answer belongs to.
Settings
The value is generated automatically.
Examples
Outputting the template tag
@GetInteger("Forum:FirstAnswer.Author.Group.ParentID")
Check if tag has a value
@if(!int.IsNullOrWhiteSpace(GetInteger("Forum:FirstAnswer.Author.Group.ParentID"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
int storedTag = GetInteger("Forum:FirstAnswer.Author.Group.ParentID");
}
Outputting the template tag
<!--@Forum:FirstAnswer.Author.Group.ParentID-->
Check if integer has a value
<!--@If Defined(@Forum:FirstAnswer.Author.Group.ParentID)-->
Let's output this tag here: <strong><!--@Forum:FirstAnswer.Author.Group.ParentID--></strong>
<!--@EndIf(@Forum:FirstAnswer.Author.Group.ParentID)-->