Forum:Category.Active

Version: - boolean  

Summary

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.Active")

Check if tag has a value

@if(!bool.IsNullOrWhiteSpace(GetBoolean("Forum:Category.Active"))) { @* Tag has value, so let's do something useful here. *@ }

Assign tag to a value for later use

@{ bool storedTag = GetBoolean("Forum:Category.Active"); }

Outputting the template tag

<!--@Forum:Category.Active-->

Check if boolean has a value

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