Sign up to take part
Registered users can ask their own questions, contribute to discussions, and be part of the Community!
Added on August 8, 2024 1:33PM
Likes: 0
Replies: 2
How do I set up two conditions?
I tried this:
Product == 'EB'
and
parseJson(stepOutcome_DroppedPols_EB) == 'SUCCESS'
and this:
and(Product == 'EB',
parseJson(stepOutcome_DroppedPols_EB) == 'SUCCESS')
to no avail
Thanks!
Use && between the expressions. It’s like an “and”.
PS: Note that you will most likely want to use this expression:
condition1 && condition2 && conditionN && outcome == 'SUCCESS'
Read the Pro Tip section of this post to understand why. You can also use brackets and combine with the Or boolean operator || as follows:
(condition1 || condition2) && condition3
Finally the boolean functions of Dataiku's formula language can also be used here but I prefer the boolean operators since it makes the expression more readable:
and(or(condition1, condition2), condition3)