cancel
Showing results for 
Search instead for 
Did you mean: 

Expression in router

Sahil
Contributor

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 1

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:
    image

BR,
Marija