Skip to content

If

flowtask.components.IF

IF

IF(loop=None, job=None, stat=None, **kwargs)

Bases: BaseLoop

IF Component

Executes one of two components based on a condition.

true_component: The component to execute if the condition evaluates to True. false_component: The component to execute if the condition evaluates to False.

run async

run()

Executes the appropriate component based on the condition.

start async

start(**kwargs)

Initialize the component.