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