when

Use in combination with an assertion block to implement branching logic in your automations. Supply two blocks and execute either one of them depending on the result of the assertion

Name when
Type Function
Path packages/blocks/src/building-blocks/if-then-else-condition.ts

Signature

    when: <TO = void, EO = void, PO = void, I = void>(config: IIfThenElseConditionConfig<TO, EO, PO, I>) => Block<I, TO | EO> 

Parameters

Name Type Description
config IIfThenElseConditionConfig<TO, EO, PO, I>

Return Value

Block<I, TO | EO>