Else

fun Else(task: TaskRef<*>): ConditionRef

Names the task that runs when the condition does not hold. A condition needs no Else; without one, nothing is skipped when it holds.

Return

This condition, for chaining.

Parameters

task

Task of the same Dag, which the condition skips when it holds.

Throws

if the task belongs to another Dag, is the Then task, or this side is already named.