Skip to Content
avatar image
Former Member

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

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

node.jpg (11.3 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Jan 25 at 08:28 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded

    • 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