isFeatureEnabled()

Overview

public boolean function isFeatureEnabled(
      required string feature     
    ,          string siteTemplate
)

Returns whether or not the passed feature is currently enabled

Arguments

NameTypeRequiredDescription
featurestringYesname of the feature to check, or logical expression containing features to check, e.g. "(featurex || featurey) && featurez"
siteTemplatestringNocurrent active site template - can be used to check features that can be site template specific