ExecuteIf(Config<bool>, IModule[]) Constructor
Specifies a predicate and a series of child modules to be evaluated if the predicate returns true.
Namespace
Statiq.Core
Containing Type
ExecuteIf

Syntax

public ExecuteIf(Config<bool> predicate, params IModule[] modules)

Remarks

If the config requires a document, the predicate will be evaluated against each input document individually. Otherwise the predicate will be evaluated against the context.

Parameters

Name Type Description
predicate Config<bool> A predicate delegate that should return a bool.
modules IModule[] The modules to execute on documents where the predicate is true.