中文
Node Documentation

Select (ternary)

DataTarget independentlogic.select

Outputs When True or When False according to the condition. Both branches must use the same observable inline JSON type.

Example use

Choose between the strings "Success" and "Failure" according to a boolean condition.

Node preview

Right-drag to pan and scroll to zoom. Expand inputs and edit parameters to see how ports change. This preview does not run the node; reopening the page restores the example.

Loading node preview…

Data inputs 3

ConditionconditionBoolean

The boolean condition selecting a control path or output value.

Default availableDefault: true
When truewhen_trueMatching type inferred from connections

The value selected when true, with the same type as the false branch.

RequiredDefault: None
When falsewhen_falseMatching type inferred from connections

The value selected when false, with the same type as the true branch.

RequiredDefault: None

Data outputs 1

ResultresultMatching type inferred from connections

The result of this data operation, with its type determined by the matching inputs.

Version and node identity

Version 1.0.0

sha256:9024d8db1bcaa21f438b3f953b1474639f142579b7d7025420b463c32f76164b