End branchđź”—
Merges alternative processing pipelines. This tool is the opposite of a begin branch. Depending on the value of the branch input, the tool outputs the values received from one of its input groups.
Another use case for the merge tool is to synchronously choose between alternative parameter sets for other tools. In this case one can set default values to all dynamic inputs and use the branch input to choose which of the input sets to send.
Inputsđź”—
branch
: A zero-based input branch index. If the branch index is zero, the values in the first input group will be passed through. If it is one, the values in the second group will be passed and so on. Note that the branch input parameter of a begin branch should always be changed synchronously with the branch input parameter of this tool. See synchronization for more information.inputParameters
: A table that defines dynamic input parameters. The first column contains the name of a parameter and the second one the data type of the parameter’s value.branchCount
: The number of alternative branches.
The total number of inputs is the product of branchCount and the number of dynamic input parameters. The pattern for naming output parameters is “name[X]”, where “name” is the user-defined name of an input parameter and X a zero-based branch index.
Outputsđź”—
The outputs are defined by inputParameters. An output parameter will be created for each dynamic input parameter. If the user-defined name of an input parameter is “value”, then the “value” output will emit the value of the input “value[X]”, where “X” is the current value of the branch input.