which

SpecialNodes which

parameter ports:
Name Type Description Optional

case0

?0

case selector for out0

yes

case1

?0

case selector for out1

yes

…​

case N-1

?0

case selector for out N-1

yes

input ports:
Name Type Description Optional

selector

?0

selector value

no

output ports:
Name Type Description Optional

out0

bool

output selected when case0 is matched

yes

out1

bool

output selected when case1 is matched

yes

…​

out N-1

bool

output selected when case N-1 is matched

yes

which reads a selector value from its sole input port, sends a true value from the selected output port, and sends false to all the other outputs.