IF Switch (Flow Variable Value)

This Node Is Deprecated — This node is kept for backwards-compatibility, but the usage in new workflows is no longer recommended. The documentation below might contain more information.

This node provides an IF switch which selects the active port based on the comparison of a flow variable with a user-entered value. The comparison method can also be selected. It can be considered to be broadly similar in function to the Java Snippet IF Switch node in the core KNIME implementation, and provides an exact analogue of the equivalent flow variable flow control node.

WARNING: This deprecated version performs reverse lexicographical comparisons for string variables

If numeric variables (double or integer types) are selected, the node will attempt to process the user-entered value as a number. If this cannot be done, then the node will not be executable. An empty string will not be interpreted as a numeric value. Note that integers can not be compared with values where a '.' is present, so '1.0' cannot be interpreted, but '1' can.

For doubles, a threshold is specified in the dialogue. If the variable is within this threshold of the comparison value it will be considered to be equal to it (Applies to =, !=, >= and <= comparisons).

String comparisons are ' lexicographical ' - i.e. the sorting order mirrors that in which the strings would be expected to appear in a dictionary.

If the comparison is considered to be 'true', then the top port will be active, otherwise the bottom port will be active

This node was developed by Vernalis Research . For feedback and more information, please contact knime@vernalis.com

Options

Flow variable selection (un-named in dialogue)
Select from the available flow variables
Comparison operator selection (un-named in dialogue)
Select the required comparison operation
Comparison value (un-named in dialogue)
Enter a value
Ignore case
Ignore the case (String comparisons only)
Ignore leading/trailing whitespace
Ignore leading / trailing white-space characters (String comparisons only)
Equality tolerance
The maximum difference between double values within which they will still be considered to be equal

Input Ports

Icon
Input port

Output Ports

Icon
Active port if comparison is true
Icon
Active port if comparison is false

Popular Predecessors

  • Table Row to Variable20 %
  • IF Switch (Flow Variable Value)7 %
  • Table Column to Variable6 %
  • Math Formula (Variable)6 %
  • Java Snippet4 %
  • Row Filter4 %
  • Column Filter3 %
  • Rule Engine3 %
  • End IF3 %
  • Wait3 %
  • Reference Row Filter2 %
  • GroupBy2 %
  • IF Switch2 %
  • Missing Value2 %
  • Extract Table Dimension2 %
  • Merge Variables2 %
  • Try (Data Ports)2 %
  • Flow Variable IF Switch (Flow Variable Value)1 %
  • Catch Errors (Data Ports)1 %
  • Table Row To Variable Loop Start1 %
  • Database Reader1 %
  • Empty Table Creator1 %
  • SDF Reader1 %
  • Variable to Table Column< 1 %
  • Chunk Loop Start< 1 %
  • Recursive Loop Start< 1 %
  • Variable Loop End< 1 %
  • Column Appender< 1 %
  • Joiner< 1 %
  • Column Rename< 1 %
  • RowID< 1 %
  • Empty Table Switch< 1 %
  • Excel Reader (XLS)< 1 %
  • Boolean Input< 1 %
  • ZipLoopStart< 1 %
  • List Remote Files< 1 %
  • Variable to Table Row< 1 %
  • CSV Reader< 1 %
  • Loop End< 1 %
  • Group Loop Start< 1 %
  • k-Means< 1 %
  • Regression Predictor< 1 %
  • Concatenate< 1 %
  • Concatenate (Optional in)< 1 %
  • Auto-Binner< 1 %
  • Column Comparator< 1 %
  • Constant Value Column< 1 %
  • Cross Joiner< 1 %
  • Table Validator< 1 %
  • Transpose< 1 %
  • Rule-based Row Filter< 1 %
  • String Input< 1 %
  • Python Script< 1 %
  • Python Script (1⇒1)< 1 %
  • R Snippet< 1 %
  • Twitter Search< 1 %
  • Click< 1 %
  • Table Row To Variable Run-for-time Loop Start< 1 %
  • String To Number< 1 %
  • Rule Engine Variable< 1 %
  • Data Generator< 1 %
  • Case Converter< 1 %
  • RDKit Descriptor Calculation< 1 %

Popular Successors

Views

This node has no views

Workflows

  • No workflows found

Links

Developers

You want to see the source code for this node? Click the following button and we’ll use our super-powers to find it for you.