Active

Version: - boolean  

Summary

Returns True if the comment is active.

Settings

The value is based on the Active field for the comment.

Examples

Outputting the template tag

@GetBoolean("Active")

Check if tag has a value

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

Assign tag to a value for later use

@{ bool storedTag = GetBoolean("Active"); }

Outputting the template tag

<!--@Active-->

Check if boolean has a value

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