Skip to Content
0
Former Member
Sep 23, 2016 at 08:45 PM

Calculate values based on two context

17 Views

Hi,

How calculate values from two different queues?

I would like to multiply values from two arrays.

below are my queues.

My values for target queue will be like below

output:

75* 3139.00 = 2354.25

25*3139.00 = 78475

0

0

Below udf is not working based on contextchangenode.

String Res="";

for ( int i=0; i<var1.length;i++ )

{

for ( int j=0; j<var2.length; j++ )

{

Res = var1[i] * var2[j];

result.addValue(Res);

}

}

Thanks

Praveen

Attachments

Queue.png (12.3 kB)