cancel
Showing results for 
Search instead for 
Did you mean: 

Compare two fields in different nodes at same level and pass target output

Former Member
0 Kudos

HI Experts,

looking for some help on UDF ,I working on the requirement , were in i have to compare the two fields in two different nodes at same level ( Node 1 and Node 2) having Fields ( Filed 1 - in Node ) ( Field 2 and Field 3 in ( Node 2).

Here i need to compare Field 1(Queue values) and Field 2 (Queue values), If field 1 = Field 2 then pass Field 3 ( Queue value of that context) else Suppress.

Thanks in Advance,

Pooja

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member190293
Active Contributor

Hi Pooja!

You just should ensure that elements count for all of your queues is the same (using MapWithDefault for example). After that you can proceed with these queues as usual:

If (Queue1/Field1 = Queue2/Field2) than Queue2/Field3 else Suppress).

Regards, Evgeniy.

Former Member
0 Kudos

Hi Evgeniy,

That's the issue , i don't have same count.

Regards,

Pooja

Ryan-Crosby
Active Contributor
0 Kudos

Evgeniy had already given you the answer on how to make sure the count is the same - "mapWithDefault". Then you will always have a value even if it is blank in which case you comparison function will work as expected.

Regards,

Ryan Crosby