Workspace 7.0.2
|
The SelectInput operation acts as a "switch" in a workflow - a way to conditionally control which upstream branch is executed. To use it, define the data type of the operation in the properties dialog, then connect one or more operations to the Indexed inputs array input. This provides the operation with an array of branches to choose from. When the Index input is changed (either via the user-interface or via an upstream operation), the SelectInput will make sure to only bring the branch with the corresponding index up-to-date. In this way, the workflow is able to dynamically select which branch to execute. If you are familiar with programming constructs, this operation is akin to an IF statement. See the "Making choices" tutorial for more information and some examples.
Inputs: | |||
---|---|---|---|
Index | int | Controls which of the Indexed inputs is to be brought up-to-date when the operation executes. Will fail if the index is less than zero, or greater than the number of elements in the Indexed inputs array. | |
Indexed inputs | Array Modified-in-place | CSIRO::DataExecution::Dependency | An array of inputs, one of which will be brought up-to-date when the operation executes, depending on which value is specified on the Index input. |
Outputs: | |||
Selected data | CSIRO::DataExecution::Dependency | The output data from the selected input. |