Forum:Category.IsActive
Version: - booleanSummary
Returns True if the category is active.
Settings
The value is based on the Active field for the forum category.
Examples
Outputting the template tag
@GetBoolean("Forum:Category.IsActive")
Check if tag has a value
@if(!bool.IsNullOrWhiteSpace(GetBoolean("Forum:Category.IsActive"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
bool storedTag = GetBoolean("Forum:Category.IsActive");
}
Outputting the template tag
<!--@Forum:Category.IsActive-->
Check if boolean has a value
<!--@If Defined(@Forum:Category.IsActive)-->
Let's output this tag here: <strong><!--@Forum:Category.IsActive--></strong>
<!--@EndIf(@Forum:Category.IsActive)-->