Ecom:CustomerCenter.List.IsPublished

Version: - boolean  

Summary

Returns True if the list is marked as published.

Settings

The value is generated automatically.

Remarks

The value is based on the Published checkbox when creating the list.

Examples

Outputting the template tag

@GetBoolean("Ecom:CustomerCenter.List.IsPublished")

Check if tag has a value

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

Assign tag to a value for later use

@{ bool storedTag = GetBoolean("Ecom:CustomerCenter.List.IsPublished"); }

Outputting the template tag

<!--@Ecom:CustomerCenter.List.IsPublished-->

Check if boolean has a value

<!--@If Defined(@Ecom:CustomerCenter.List.IsPublished)--> Let's output this tag here: <strong><!--@Ecom:CustomerCenter.List.IsPublished--></strong> <!--@EndIf(@Ecom:CustomerCenter.List.IsPublished)-->