if data is exist for field2 then only map field1

Hi …

i have one scenario like, if LIN03 is exist then only map LIN02.

how to implemt this logic… pls help me.

Hi jhima

you can use Branch on a switch value.
In the Properties panel for the BRANCH step, specify in the Switch property the name
of the pipeline variable whose value will act as the switch.

if you are checking if data is exist for LIN03

if you want to check LIN03 is contains no characters
…Brnch/LIN03
…SEQUENCE (
Leave the Label property blank (empty). At run time, the BRANCHstep executes the target step with no label if the switch variable is
present, but contains no characters.)
-------- do mapping

if you want to check LIN03 is set to null or does not exist in pipline…
…Brnch/LIN03
…$null:SEQUENCE (
$null label if the switch variable isexplicitly set to null or does not exist in the pipeline)
------- do mapping

For more details please go with wM developer user guides…

Regards
Mukesh

Hi,
You can either use copy condition.

Regards,
Amol.

Hmm. If by LIN you mean the item identification segment then I’m not sure why you’d map that way. Typically, you’d branch on the qualifier field and based on its specific value you’d map the data field to some target. For example:

LIN**UP12398298234

where LIN02 = UP and LIN03 =12398298234

BRANCH on /my856/LIN02:
…UP: MAP (map LIN03 for UPC value)

Or perhaps I’ve misunderstood your specific case of LIN02 and LIN03.