Branch - Branch according to the input that is received

This action checks its input and exits through the corresponding exit.


<Selector> (non-repetitive trigger [required]): An input object according to which branching is done.

<Data> (non-repetitive trigger [not required]): The value to be passed through the selected exit. If the <Data> trigger is omitted, the value of the <Selector> input is used instead.

This means there are two ways to use Branch (see the two screenshots below):

1. Providing only <Selector> - the provided value is used both to choose the exit and as the output value.

2. Providing both <Selector> (used to choose the exit) and <Data> (the output value).

Exits [none required]

The action may have any number of non-repetitive exits, each specifying a different value to which the <Selector> value is compared. All exits should have the same data type as the <Data> trigger (or the <Selector> trigger, if <Data> is omitted).

An exit's value is specified by the content of its value property (or, by default, if it doesn't have a value property, by its name). For example, if the <Selector> input is 4, then an exit with the value "4" (or the exit named 4) is activated, passing the <Data> input (or passing the input number 4 itself, if the <Data> trigger is omitted).

<Other> (non-repetitive exit [not required]): A default exit used when the <Selector> input does not match the value of any other exit.

Usage Example 1 - Providing only <Selector>

"Common/Templates/Flow Control/Branch/Test1/Test Branch by Text":

Usage Example 2 - Providing both <Selector> and <Data>

"Examples/File Library/File Library View/Display File by Type" in the "Examples" project: