column expression

Hi everybody. i tried to write a code in column expression and now it has an error and i don’t know how to fix it .
if (column(column(“vaziate ta’ahol”)) == “moteahhel”) “Married”
(if (column(“vaziate ta’ahol”))== “mojarrad”) “Single”
(if (column(“vaziate ta’ahol”))== “bedune hamsar(fot)”) “Died”
((else if (column(“gender”) == “F”) “Female”))

and the error is:

Expected an operand’ but found 'if ’
(if (column(“vaziate ta’ahol”))== “mojarrad”) “Single”
^ at line 2 at column 3

Hi,
I think you have to remove one paranthesis before the ==. Otherwise the if is in its own expression without any operand.
Kind regards
Alexander

2 Likes

Hi there @Mitrazz,

Column Expressions node is based on JavaScript syntax. You can check here how to write proper if else condition - https://www.w3schools.com/js/js_if_else.asp

Br,
Ivan

1 Like

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