Skip to contents

Creates a conditional branch point in a workflow where execution can follow different paths based on a condition function.

Usage

when(condition_fn, ...)

Arguments

condition_fn

A function that takes the current data and returns a character vector of branch names to execute

...

Named arguments where names are branch names and values are workflow steps or sub-workflows

Value

A workflow branching object