0 votes
Can I write case statements as below?

case when A = "B" && A="any_string" || "another_string" then 'C' else (
  case when A = "D" && E="any_integer" then 'F' else (
    case when A = "G"  &&  H="any_string" && K="any_integer" then "any_string" else "column_name" end
  ) end
) end
asked by
Are you referring to the formula language in visual recipes? If so, standard if(condition, then, else) are supported. You can also use "&&" for multiple AND, and "||" for multiple OR.
Hi, Did that answer your question?
Hello, should I close this issue? Did you find a solution?

1 Answer

0 votes
Hi,

The syntax for Dataiku IF formulas is " if(condition, then, else)". For verifying conditions, you can also use "&&" for multiple AND, and "||" for multiple OR.

Please refer to our formula language documentation for other uses of formulae: https://doc.dataiku.com/dss/latest/advanced/formula.html

Hope it helps,

Alex
answered by
994 questions
1,023 answers
1,075 comments
3,027 users

┬ęDataiku 2012-2018 - Privacy Policy