COLUMN EXPRESSION: IF ... else

Hello…I am new to KNIME, not new to IT.
Can you please help with syntax on this pseudocode

IF col1 = ‘ABC’, then col2 * 10
else
min(col4, col5)*col2 * 10/2
end

I am completely confused with various {[(, to be manipulated there…
Thanks!

if (col1 = ‘ABC’) {col2 * 10}
else
{min(col4, col5)*col2 * 10/2}
Also, see here

3 Likes

Hello @GarySiemens,

see this example on KNIME Hub with couple of if/else variations in Column Expressions:

Br,
Ivan

2 Likes

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