Step based execution control - two conditions

Registered Posts: 44 ✭✭✭✭
edited August 2024 in Using Dataiku

How do I set up two conditions?

Site faviconStep-based execution control — Dataiku DSS 13 documentation

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

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

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

  • Dataiku DSS Core Designer, Neuron, Dataiku DSS Adv Designer, Registered, Neuron 2023 Posts: 2,390 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)

Welcome!

It looks like you're new here. Sign in or register to get started.

Welcome!

It looks like you're new here. Sign in or register to get started.