Forum:FirstAnswer.IsSticky

Version: - boolean  

Summary

Returns True if first answer is sticky.

Settings

The value is based on the Sticky field for the forum message.

Examples

Outputting the template tag

@GetBoolean("Forum:FirstAnswer.IsSticky")

Check if tag has a value

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

Assign tag to a value for later use

@{ bool storedTag = GetBoolean("Forum:FirstAnswer.IsSticky"); }

Outputting the template tag

<!--@Forum:FirstAnswer.IsSticky-->

Check if boolean has a value

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