Step based execution control - two conditions
Noah
Registered Posts: 43 ✭✭✭✭
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!
Best Answers
-
Turribeach Dataiku DSS Core Designer, Neuron, Dataiku DSS Adv Designer, Registered, Neuron 2023 Posts: 2,160 Neuron
Use && between the expressions. It’s like an “and”.
-
Turribeach Dataiku DSS Core Designer, Neuron, Dataiku DSS Adv Designer, Registered, Neuron 2023 Posts: 2,160 Neuron
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)