Summary
Specifies a predicate and a series of child modules to be evaluated if the predicate returns
true
.
The predicate will be evaluated once for all input documents.
- Assembly
- Wyam
.Core .dll - Namespace
- Wyam
.Core .Modules .Control - Containing Type
- If
Syntax
public If(ContextConfig predicate, params IModule[] modules)
Parameters
Name | Type | Description |
---|---|---|
predicate | ContextConfig | A predicate delegate that should return a bool . |
modules | IModule[] | The modules to execute on documents if the predicate is true . |
Return Value
Type | Description |
---|---|
void |