If.

ElseIf(ContextConfig, IModule[]) Method

Summary

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. 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 ElseIf(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
If The current module instance.
GitHub