Flow Variable 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.

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

NOTE - Due to the way in which flow variables are handled within KNIME, no matter which the active branch, the flow variable values for any existing flow variables beyond the corresponding "end" node will be those at the top-most port of the "end" node. New variables created in any active branch will retain their correct values. If you need to change the value of existing variables, please either use a new flow variable, or use a variable to tablerow node before a conventional End IF node.

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 containing flow variable with value to compare

Output Ports

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

Popular Successors

  • Flow Variable End IF11 %
  • Variable to Table Row6 %
  • Flow Variable IF Switch4 %
  • Send Email4 %
  • Database SQL Executor4 %
  • Flow Variable IF Switch (Flow Variable Value)3 %
  • Database Reader3 %
  • Database Connector3 %
  • String Manipulation (Variable)3 %
  • IF Switch3 %
  • Java Snippet2 %
  • Row Filter2 %
  • Merge Variables2 %
  • File Reader2 %
  • Table Creator2 %
  • Column Filter2 %
  • Variable Loop End2 %
  • Text Output2 %
  • XML Reader2 %
  • Table Column to Variable1 %
  • Concatenate1 %
  • String Manipulation1 %
  • Table to R1 %
  • IF Switch (Flow Variable Value)1 %
  • CSV Reader1 %
  • PMML Reader1 %
  • Java Edit Variable1 %
  • Empty Table Switch1 %
  • Empty Table Creator1 %
  • XLS Reader1 %
  • Excel Reader (XLS)1 %
  • Java Edit Variable (simple)1 %
  • Wait...< 1 %
  • Table Row To Variable Loop Start< 1 %
  • CSV Writer< 1 %
  • Table Reader< 1 %
  • Model Loop Start< 1 %
  • Excel Reader (XLS)< 1 %
  • Google Analytics Query< 1 %
  • File Download (legacy)< 1 %
  • Variable Output (legacy)< 1 %
  • R Source (Table)< 1 %
  • RDKit Fingerprint< 1 %
  • Start WebDriver< 1 %
  • SQL Script Generator< 1 %
  • Read REST Representation< 1 %
  • Hive Loader< 1 %
  • PDB Reader< 1 %
  • FileLoader< 1 %
  • Sphere Exclusion< 1 %
  • FTP Connection< 1 %
  • Breakpoint< 1 %
  • Variable to Table Column< 1 %
  • Table Row to Variable< 1 %
  • Database Update< 1 %
  • Database Writer< 1 %
  • Extract Context Properties< 1 %
  • List Files< 1 %
  • Loop End< 1 %
  • Constant Value Column< 1 %
  • Pivoting< 1 %
  • Column Rename< 1 %
  • RowID< 1 %
  • Sorter< 1 %
  • Rule-based Row Filter< 1 %
  • Rule Engine< 1 %
  • CASE Switch Variable (End)< 1 %
  • CASE Switch Data (Start)< 1 %
  • Create Temp Dir< 1 %
  • Spark SQL Query< 1 %
  • Call Local Workflow< 1 %
  • Molecule String Input< 1 %
  • XLS Writer< 1 %
  • Excel Sheet Appender (XLS)< 1 %
  • Excel Writer (XLS)< 1 %
  • Java IF (Table)< 1 %
  • Column Selection< 1 %
  • Single Selection< 1 %
  • Value Selection< 1 %
  • JSON Reader< 1 %
  • Python Edit Variable< 1 %
  • Python Edit Variable< 1 %
  • TextArea Output (legacy)< 1 %
  • R Snippet< 1 %
  • Date/Time Shift< 1 %
  • Moving Average< 1 %
  • Bash< 1 %

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.