API

Class FlowGraphDataSwitchBlock<T>

This block conditionally outputs one of its inputs, based on a condition and a list of cases.

This of it as a passive (data) version of the switch statement in programming languages.

Type Parameters

  • T

Hierarchy (View Summary)

Index
case: FlowGraphDataConnection<FlowGraphNumber>

Current selection value.

the configuration of the block

default: FlowGraphDataConnection<T>

Input: default value to output if no case is matched.

value: FlowGraphDataConnection<T | undefined>

Output: the value that is output based on the selection.