Forum Discussion

Sahil's avatar
Sahil
Contributor
4 years ago

Expression in router

Hi,
We are doing migration to snaplogic and I need to write expression in router where basically
in first output anything which is true for the expression:-
$Z7_COND.IDOC.MES in (‘ED’,‘FG’)
and
$Z7_COND.IDOC.REC in ('34,‘PD’)

and 2nd output should have all the oppsites of first output.
How to write it in snaplogic.

1 Reply

  • marija_nikolovs's avatar
    marija_nikolovs
    New Contributor II

    Hello @Sahil,

    You need to write the next expression:

    • in the first route: ($Z7_COND.IDOC.MES == ‘ED’ || $Z7_COND.IDOC.MES == ‘PD’)
      && ($Z7_COND.IDOC.REC == ‘34’ || $Z7_COND.IDOC.REC == ‘PD’)

    • in the second route write true and check the first match:

    BR,
    Marija