Java Snippet if else

Hi everybody, 

I am someone very new to Knime and do not have any experience in Java.

I am still struggling to work with knime. I have a requirement of comparing cells in two columns in one file and giving an output of TRUE or FALSE in another column.

Attached is the same file.

I am trying to use Jave Snippet (Simple) for this purpose but I am unable to do so.

Something like,

COL A        COLB          COLC(Output)

A                    A                 TRUE

B                    C                 FALSE

C                    B                 FALSE


Any help would be appreciated. Thanks!!

Hi rahul.kalra,

To solve this, you can use the Rule Engine node.

The usage is pretty straightforward. You can create a rule like this:

$COL A$=$COL B$ => "TRUE"

Hope that helps,