JAVA if (table) node

Hi:
In my workflow I use the Java if (table) node because I need it to check if two variables are equal in value and send the information through the port above and if they are different, send it through the port below.
I thought of something like (sorry for my poor coding skills):

if ($$ {var_1} $$ == $$ {var_2} $$) {

return 0;

} else {

return 1;

}

Unfortunately this doesn’t work. I’m sure what I write is probably just creepy or something is totally wrong with the syntax. It would be nice if you could help me out here.
Thank you in advance for your help.
Elier

You might have to use equals

Also see this entry by @s.roughley

4 Likes

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.