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, IEnumerable<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.