This node provides an IF switch which selects the active database connection 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.
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
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.
A zipped version of the software site can be downloaded here.
Do you have feedback, questions, comments about NodePit, want to support this platform, or want your own nodes or workflows listed here as well? Do you think, the search results could be improved or something is missing? Then please get in touch! Alternatively, you can send us an email to email@example.com, follow @NodePit on Twitter, or chat on Gitter!
Please note that this is only about NodePit. We do not provide general support for KNIME — please use the KNIME forums instead.