Step based execution control - two conditions

Noah
Noah Registered Posts: 43 ✭✭✭✭
edited August 8 in Using Dataiku

How do I set up two conditions?

https://doc.dataiku.com/dss/latest/scenarios/step_flow_control.html#if-condition-satisfied

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
    Turribeach Dataiku DSS Core Designer, Neuron, Dataiku DSS Adv Designer, Registered, Neuron 2023 Posts: 2,160 Neuron
    Answer ✓

    Use && between the expressions. It’s like an “and”.

  • Turribeach
    Turribeach Dataiku DSS Core Designer, Neuron, Dataiku DSS Adv Designer, Registered, Neuron 2023 Posts: 2,160 Neuron
    Answer ✓

    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)
    

Setup Info
    Tags
      Help me…