Option.Active

Version: - boolean  

Summary

Returns True if the option is active - otherwise False.

Settings

The value is based on the Active field in the list options.

(Modules > Forms for editors > Form > Edit list field > Options > Edit option > Active)

Examples

Outputting the template tag

@GetBoolean("Option.Active")

Check if tag has a value

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

Assign tag to a value for later use

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

Outputting the template tag

<!--@Option.Active-->

Check if boolean has a value

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