cancel
Showing results for 
Search instead for 
Did you mean: 

UDF for if then else for multiple fields

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member186851
Active Contributor
0 Kudos

Duplicate the target node and try the below logic.