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.

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 Variable9 %
  • Column Rename7 %
  • Rule Engine4 %
  • Extract Table Dimension3 %
  • IF Switch (Flow Variable Value)3 %
  • Table Row to Variable3 %
  • Variable to Table Row3 %
  • Column List Loop Start3 %
  • Loop End2 %
  • Variable to Table Row2 %
  • Recursive Loop Start (2 ports)2 %
  • Transpose2 %
  • Math Formula2 %
  • Variable Loop End2 %
  • Rule Engine Variable1 %
  • CASE Switch Data (End)1 %
  • Inject Variables (Data)1 %
  • Boolean Input1 %
  • Table Column to Variable1 %
  • Missing Value Column Filter1 %
  • Joiner1 %
  • Nominal Row Filter Widget1 %
  • End IF1 %
  • Concatenate1 %
  • IF Switch1 %
  • Boolean Widget1 %
  • Chunk Loop Start< 1 %
  • Reference Row Filter< 1 %
  • String Manipulation (Variable)< 1 %
  • Single Selection< 1 %
  • Extract Variables (Data)< 1 %
  • Row Filter< 1 %
  • Column Splitter< 1 %
  • Rule-based Row Filter< 1 %
  • Boolean Configuration< 1 %
  • Table Column to Variable< 1 %
  • CSV Writer< 1 %
  • Single Selection Widget< 1 %
  • JSON Path< 1 %
  • Java Snippet< 1 %
  • Generic Loop Start< 1 %
  • Column Filter< 1 %
  • Catch Errors (Data Ports)< 1 %
  • Variable to Table Row< 1 %
  • Column Appender< 1 %
  • String Manipulation< 1 %
  • Ungroup< 1 %
  • Math Formula (Variable)< 1 %
  • Single Selection Configuration< 1 %
  • Merge Variables< 1 %
  • Extract Date&Time Fields< 1 %
  • Table Validator (Reference)< 1 %
  • String Input< 1 %
  • File Meta Info< 1 %
  • Database Reader< 1 %
  • Group Loop Start< 1 %
  • String To Number< 1 %
  • Empty Table Creator< 1 %
  • Column Expressions< 1 %
  • Excel Reader (XLS)< 1 %
  • Tag Cloud< 1 %
  • Column Comparator< 1 %
  • Parameterized DB Query Reader< 1 %
  • DB Writer< 1 %
  • Integer Input< 1 %
  • Counting Loop Start< 1 %
  • Excel Reader (XLS)< 1 %
  • Speedy SMILES Ring Count< 1 %
  • Flow Variable End IF< 1 %
  • Split Collection Column< 1 %
  • Number To String< 1 %
  • Lag Column< 1 %
  • RowID< 1 %
  • Rule-based Row Splitter< 1 %
  • Python Source< 1 %
  • CSV Reader< 1 %
  • Variable Creator< 1 %
  • Loop End< 1 %
  • Files/Folders Meta Info< 1 %
  • Table Editor< 1 %
  • Variable to Table Column< 1 %
  • Table Column to Variable< 1 %
  • Table Creator< 1 %
  • Column Rename (Regex)< 1 %
  • Constant Value Column< 1 %
  • Empty Table Switch< 1 %
  • Extract Table Spec< 1 %
  • SDF Reader< 1 %
  • Window Loop Start< 1 %
  • Alert< 1 %
  • MolConverter< 1 %
  • Wait...< 1 %
  • Try (Variable Ports)< 1 %
  • Table Row to Variable< 1 %
  • Extract Context Properties< 1 %
  • Table Reader< 1 %
  • Recursive Loop Start< 1 %
  • Expand Bit Vector< 1 %
  • Number To String< 1 %
  • Column Resorter< 1 %
  • Cross Joiner< 1 %
  • Row Splitter< 1 %
  • GroupBy< 1 %
  • Missing Value< 1 %
  • Sorter< 1 %
  • Rule-based Row Filter (Dictionary)< 1 %
  • Merge Variables< 1 %
  • DB Query Reader< 1 %
  • Integer Configuration< 1 %
  • String Configuration< 1 %
  • File Upload< 1 %
  • Value Selection< 1 %
  • Python Edit Variable< 1 %
  • Date&Time Difference< 1 %
  • Current URL< 1 %
  • Find Elements< 1 %
  • Unzip Files (legacy)< 1 %
  • Variable Condition Loop End< 1 %
  • Recursive Loop Start< 1 %
  • Case Converter< 1 %
  • Cell Replacer< 1 %
  • Column Auto Type Cast< 1 %
  • Joiner< 1 %
  • Reference Column Resorter< 1 %
  • CASE Switch Data (Start)< 1 %
  • Parallel Chunk Start< 1 %
  • Variable Expressions< 1 %
  • Read Excel Sheet Names (XLS)< 1 %
  • Value Selection Configuration< 1 %
  • Python Script< 1 %
  • Date&Time to String< 1 %
  • Date&Time-based Row Filter< 1 %
  • Modify Time< 1 %
  • XPath< 1 %

Popular Successors

Views

This node has no views

Workflows

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.