I try to use the column expression node to trigger the following function but I can not get it to run…
if (column(“mailtyp”)) == (“emailA”) =>
string (column(“LowFirstName”),".“column(“LowLastName”),”@",column(“Email_Arr[1]”))
else if (column(“mailtyp”)) == (“emailB”) = string (column(“LowFirstName”),"_“column(“LowLastName”),”@",column(“Email_Arr[1]”))
else “none”
as an uglyworkaround I had to use various rule-based row splitters then string manipulations and finally concatenate it…
Put the whole condition in parentheses: if (column(“mailtyp”) == “emailA”)
Use “join” function instead of “string” function: (and use string function to convert numeric columns to string) join(column(“LowFirstName”),".",column(“LowLastName”),"@",column(“Email_Arr[1]”))
Do the same for the “else if” statement and it should work fine.
hello again!
I’m a step closer but still not there…
Errors in code. Please fix the expression.
if ((column(“mailtyp”)) == (“emailB”) => join(column(“LowFirstName”)),".",(column(“LowLastName”)),"@",(column(“Email_Arr[1]”)))
else if ((column(“mailtyp”)) == (“emailB”) => join(column(“LowFirstName”)),"_",(column(“LowLastName”)),"@",(column(“Email_Arr[1]”)))
else “none”
error:
Expected an operand’ but found 'else ’
else if ((column(“mailtyp”)) == (“emailB”) => join(column(“LowFirstName”)),"_",(column(“LowLastName”)),"@",(column(“Email_Arr[1]”)))