Math Formula Node - IF-Condition

I’m pretty new to Knime, and I can’t get it to work. I would like to subtract B from A, but if B is null, then it would retain A. I hope you can help me. Thanks a lot.

Welcome to the forum @jeraldrowell.

For something like this, I’d use the Column Expressions node, with an expression like:

if (not(isMissing(column("B"))))
{column("A")-column("B")}
else {column("A")}
3 Likes

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