Skip to main content

Logical: One Of

First-type-match selector. Reads N candidates on the unlimited value input and emits the first one whose type exactly matches Value type. Useful for cascading fallbacks (primary OR secondary OR default) when the fallback branches produce values of different types.

Matching is purely on the type tag — whether the value is "empty" is irrelevant. An empty string "" is a String and will be selected. A null input has the None type and only matches when Value type is None. If no input matches the configured type, the step fails (it is not a silent skip). When Value type is left empty, the first input is emitted regardless of its type.

Example
Value type: String
Inputs (in order): null, "", "alice"
Output: ""
# null has type None, so it is passed over;
# "" is the first String, so it wins over "alice".

Value type: Number
Inputs (in order): null, "", "alice"
Output: the step fails (no Number input)

Parameters

Value typerequired

Wire type the output is constrained to (String, Number, Bool, JSON, Date, …). Inputs of other types are passed over. When left empty, the first input is emitted whatever its type.

Input

Valuerequired

One or more candidate values, each wired to its own slot on the unlimited value input. Evaluated in input-connection order.

Output

Value

The first input whose type matches Value type. If none match, the step fails.