IsMaster
Version: - booleanSummary
Returns True if the website language is Master.
Settings
The value is generated automatically.
Examples
Outputting the template tag
@GetBoolean("IsMaster")
Check if tag has a value
@if(!bool.IsNullOrWhiteSpace(GetBoolean("IsMaster"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
bool storedTag = GetBoolean("IsMaster");
}
Outputting the template tag
<!--@IsMaster-->
Check if boolean has a value
<!--@If Defined(@IsMaster)-->
Let's output this tag here: <strong><!--@IsMaster--></strong>
<!--@EndIf(@IsMaster)-->