IsSelected

Version: 9.7.0 boolean  

Summary

Return True if option is selcted.

Settings

The value is generated automatically.

Examples

Outputting the template tag

@GetBoolean("IsSelected")

Check if tag has a value

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

Assign tag to a value for later use

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

Outputting the template tag

<!--@IsSelected-->

Check if boolean has a value

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