cancel
Showing results for 
Search instead for 
Did you mean: 

I need an UDF to make 2 default output values for the same node, occurrence is -unbounded.

former_member233212
Participant
0 Kudos

Dear Experts,

I have one input field where I will be getting multiple inputs, however in case there is no input present there I need to supply 2 default values in same node.

This is the mapping.

Please help me with an UDF.

Regards,
Vidhya

Accepted Solutions (1)

Accepted Solutions (1)

former_member186851
Active Contributor
0 Kudos

Hello Vidhya,

Try the below logic and UDF,

UDF code:

String j[]={"value1","value2"}; if(var1[0]!="") { for(int i=0;i<var1.length;i++) { result.addValue(var1[i]); } } else { for(int i=0;i<2;i++) { result.addValue(j[i]); } }

Replace Value and Value with whatever values you require to be populated.

former_member233212
Participant
0 Kudos

Thanks Raghu,

It worked like charm!!!!!!!

Thanks a lot! 🙂

Regards,

Vidhya

former_member186851
Active Contributor
0 Kudos

Nice to hear Vidhya!!!

Answers (0)