Column expression

Hi everybody, i have a problem with the node “column expression”.
I used this node in order to change a column that contains Gender. the gender is : F & M and now I want to have Female and Male instead of F and M. Can I make this change using column expression just one time or i should use this node two times?

Hi @Mitrazz

Why don’t use the Rule Engine node?
Screenshot%20from%202020-01-05%2019-03-14
gr. Hans

2 Likes

Hi @Mitrazz,

As @HansS suggested, using the Rule Engine node seems a more straightforward approach to deal with this case.

However, if you still want to use the Column Expressions node, the expression should be like this:

if (column("gender") == "M") "Male"
else if (column("gender") == "F") "Female"

:blush:

4 Likes

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