Skip to Content
avatar image
Former Member

UDF for if then else for multiple fields

Hi Experts

My requirement is ... Taregt Root2 should exist if fieldA or fieldB exist(only onefield exist) in source and howmany times they exist, those many times target Root2 should exist in Target. fieldA or fieldB values should pass to fieldA at target under Root2. I have tried with standard functions (exist,if then else etc), I am not getting the output. Can anyone suggest UDF code.

Source:

<Root1>

-<Root2>

--<fieldA>0..unbound

--<fieldB>0..unbound

Target:

<Root1>

-<Root2>0..unbound

--<fieldA>0..unbound

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Jul 07, 2017 at 07:57 AM

    Duplicate the target node and try the below logic.

    Add comment
    10|10000 characters needed characters exceeded