Specifies an alternate condition to be tested on documents that did not satisfy
previous conditions. You can chain together as many
ElseIf calls as needed.
- Namespace
- Statiq
.Core - Containing Type
- ExecuteIf
Syntax
public ExecuteIf ElseIf(string key, params IModule[] modules)
Remarks
Only input documents will be processed and the modules will not be run if there are no input documents.
Parameters
| Name | Type | Description |
|---|---|---|
| key | string | A metadata key that must be present. |
| modules | IModule[] | The modules to execute on documents that contain the specified metadata key. |
Return Value
| Type | Description |
|---|---|
| ExecuteIf | The current module instance. |