Hi all,

i’d like to be able to use **IF STATEMENT** that allow me to make this formula:

- a= 1 column
- b= 2 column
- c= 3 column

if a > b then d = c * b

else

b

may someone help me to understand which node is better to use?

thank you in advance.

simone

Hi all,

i’d like to be able to use **IF STATEMENT** that allow me to make this formula:

- a= 1 column
- b= 2 column
- c= 3 column

if a > b then d = c * b

else

b

may someone help me to understand which node is better to use?

thank you in advance.

simone

Hi there @SimoneDePaoli,

in this case I would use Math Formula node and *if()* function cause you have numeric columns.

This would be syntax:

`if(a > b, c * b, b)`

In case you are looking for some more complex if/else statements or string columns are included see this topic about Column Expressions node:

Br,

Ivan

5 Likes

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