Value Switch

Currently we have Switch nodes that switch based on a value between multiple execution lines. A Switch that takes multiple execution lines and values and outputs one execution line and the value that belongs to the ingoing execution line would be useful to avoid duplicated code.

Example:

In:
Exec 1
Value 1
Exec 2
Value 2

Out:
Exec
Value

If you call Exec 1 one value should output Value 1, otherwise Value 2

Would this function like a Select node with an execution and multiple inputs? I just want to get a more complete understanding of the user experience of the node’s function.

It would be a way to merge value lines, that come from different sources(here: input axis and event for other input sources), without duplicating the code that uses the value, so it would be a select based on execution lines rather than a countable value

Mockup:

There is a merge execution macro coming in 4.8 I believe. You can probably just copy that and create your own that takes input values.