0 ×

Java IF (Table)

KNIME JavaScripting node version 4.2.0.v202004011214 by KNIME AG, Zurich, Switzerland

Java IF Switch on tables. Use the java editor to enter an expression that returns 0 or 1 (int) to indicate which of the two output branches the input should be directed to.

Note that any other result value (neither 0 nor 1) will result in an error.

Options

Flow Variable List
The list contains the flow variables that are currently available at the node input. Double clicking any of the entries will insert the respective identifier at the current cursor position (replacing the selection, if any).
Method Body
Enter your java code here (the entire source will be wrapped in a method). You can add the name of a variables by double-clicking its name in the left list. Note that numeric (double-compatible) variables will be handled as Double, int-compatible variables as Integer and any other varaible type as String.

Input Ports

Icon
Input variables (optional).

Output Ports

Icon
Output port that contains the input data if the result of the expression is 0 (otherwise) this branch is inactive.
Icon
Output port that contains the input data if the result of the expression is 1 (otherwise) this branch is inactive.

Best Friends (Incoming)

Best Friends (Outgoing)

Workflows

Installation

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

KNIME 4.2

A zipped version of the software site can be downloaded here. Read our FAQs to get instructions about how to install nodes from a zipped update site.

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.