0 ×

Flow Variable IF Switch (Flow Variable Value)

DeprecatedVernalis Flow Control extension for KNIME Workbench version 1.26.0.qualifier by Vernalis (R&D), UK

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

Input port containing flow variable with value to compare

Output Ports

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

Best Friends (Incoming)

  • Java Edit Variable (10 %) 
  • Flow Variable IF Switch (8 %) 
  • Java Snippet (8 %) 
  • Table Row to Variable (6 %) 
  • Flow Variable IF Switch (Flow Variable Value) (4 %) Deprecated
  • Table Column to Variable (4 %) 
  • End IF (4 %) 
  • Flow Variable End IF (2 %) 
  • URL to File Path (Variable) (2 %) 
  • Catch Errors (Data Ports) (2 %) 
  • Catch Errors (Var Ports) (2 %) 
  • Extract Variables (Data) (2 %) 
  • Table Row To Variable Loop Start (2 %) 
  • Database Reader (2 %) 
  • File Reader (2 %) 
  • Chunk Loop Start (2 %) 
  • Variable Condition Loop End (2 %) 
  • Recursive Loop Start (2 %) 
  • Column Resorter (2 %) 
  • Column Filter (2 %) 
  • Row Filter (2 %) 
  • GroupBy (2 %) 
  • String Manipulation (2 %) 
  • String Manipulation (Variable) (2 %) 
  • Rule Engine (2 %) 
  • Rule Engine Variable (2 %) 
  • Single sample t-test (2 %) 
  • Merge Variables (2 %) 
  • Math Formula (Variable) (2 %) 
  • Read Excel Sheet Names (XLS) (2 %) 
  • Java Edit Variable (simple) (2 %) 
  • Boolean Input (2 %) 
  • Single Selection (2 %) 
  • Single Selection Input QuickForm (legacy) (2 %) 
  • Show all 34 recommendations

Best Friends (Outgoing)

  • Flow Variable End IF (5 %) 
  • Variable to Table Row (5 %) 
  • Table to R (5 %) 
  • Flow Variable IF Switch (Flow Variable Value) (3 %) Deprecated
  • Database Reader (3 %) 
  • Database SQL Executor (3 %) 
  • Database Connector (3 %) 
  • Read REST Representation (1 %) 
  • Hive Loader (1 %) 
  • PDB Reader (1 %) 
  • IF Switch (Flow Variable Value) (1 %) Deprecated
  • Flow Variable IF Switch (1 %) 
  • FTP Connection (1 %) 
  • Breakpoint (1 %) 
  • Wait... (1 %) 
  • Variable to Table Column (1 %) 
  • Table Column to Variable (1 %) 
  • Table Row to Variable (1 %) 
  • CSV Reader (1 %) 
  • CSV Writer (1 %) 
  • Database Update (1 %) 
  • File Reader (1 %) 
  • List Files (1 %) 
  • PMML Reader (1 %) 
  • Table Reader (1 %) 
  • Table Creator (1 %) 
  • Java Edit Variable (1 %) 
  • Java Snippet (1 %) 
  • Variable Loop End (1 %) 
  • Concatenate (1 %) 
  • Constant Value Column (1 %) 
  • Column Filter (1 %) 
  • Row Filter (1 %) 
  • Pivoting (1 %) 
  • Column Rename (1 %) 
  • RowID (1 %) 
  • Sorter (1 %) 
  • String Manipulation (1 %) 
  • String Manipulation (Variable) (1 %) 
  • Rule-based Row Filter (1 %) 
  • CASE Switch Variable (End) (1 %) 
  • IF Switch (1 %) 
  • Create Temp Dir (1 %) 
  • Merge Variables (1 %) 
  • Send Email (1 %) 
  • Spark SQL Query (1 %) 
  • Empty Table Creator (1 %) 
  • Call Local Workflow (1 %) 
  • XLS Reader (1 %) 
  • Excel Reader (XLS) (1 %) 
  • Excel Writer (XLS) (1 %) 
  • Java Edit Variable (simple) (1 %) 
  • Java IF (Table) (1 %) 
  • Google Analytics Query (1 %) 
  • Text Output (1 %) 
  • Column Selection (1 %) 
  • Single Selection (1 %) 
  • Value Selection (1 %) 
  • Python Edit Variable (1 %) 
  • Python Edit Variable (1 %) 
  • File Download (legacy) (1 %) 
  • TextArea Output (legacy) (1 %) 
  • Variable Output (legacy) (1 %) 
  • R Source (Table) (1 %) 
  • Date/Time Shift (1 %) 
  • XML Reader (1 %) 
  • Bash (1 %) 
  • Show all 67 recommendations

Workflows

Installation

To use this node in KNIME, install Vernalis KNIME Nodes from the following update site:

KNIME 4.2
Wait a sec! You want to explore and install nodes even faster? We highly recommend our NodePit for KNIME extension for your KNIME Analytics Platform.

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.