Math Formula if Statement

Hello everyone,

i have following code, i would like use it in a node maybe “Math Formula” :

if a> 53:
a = a + 26
else :
a = a - 53

Thanks

Hello @PXP_Mo,

and welcome to KNIME Community!

If statements can be done within couple of nodes in KNIME. Math Formula is one of them and syntax is pretty straightforward. You have description of if() function within node itself so take a look and give it a try. Additionally take a look at this topic on if else statements:

Br,
Ivan

4 Likes

Hi Ivan,

Thanks but i can"t Find the solution there.

Hi @PXP_Mo and welcome to the KNIME forum community,

Complementary to @ipazin link, please find below other links sorted by importance that might answer your question:

Hope it helps.

Best,
Ael

3 Likes

@ipazin 's answer (second post) in the link he shared
br

1 Like

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