echoif

SpecialNodes echoif

input ports:
Name Type Description Optional

gate

?0

control input, interpreted as boolean

no

in1

?1

first data input

yes

in2

?2

second data input

yes

…​

in N-1

? N

final data input

yes

output ports:
Name Type Description Optional

out1

?1

echo of first data input or default value

yes

out2

?2

echo of second data input default value

yes

…​

out N

? N

echo of final data input or default value

yes

echoif reads the gate and all of its data inputs. if the gate value is false, it does nothing further; nothing is output. Otherwise, if the gate is true, then for each used output, it echoes the value of the corresponding data input of the same type (if the corresponding input port is used), and the default value (if the corresponding input port is unused).

echoif is the same as echo, but it has an additional gate input that, if false, causes all input values to be discarded and no output to be sent.