Workspace 6.21.5
SelectInput

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.

  • Default label: "Select input"
  • Member of plug-in: Built-in
  • Catalogue path: Builtin
  • Polymorphic: SelectInput is a Polymorphic Operation. One or more of its inputs and outputs are not listed below because they are created dynamically whenever the operation changes its data type, and when it is first created.
Inputs:
IndexintControls 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 inputsArray Modified-in-placeCSIRO::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 dataCSIRO::DataExecution::Dependency

The output data from the selected input.