Unable to print Int Array in WriteLine Activity

I am practising this automation where I need to see the INPUT value in the Write line but instead, I just could see System.Int32, How can I see the values?


use for each to print

HI,

Can you try the following expression?

String.Join(",",arrInt)

Regards,

means i have to use Write activity in For each loop?

Yes use write activity inside for each

Thank you so much for your Quick response.

1 Like

Grateful, what if I have to find the sum of negative integers?

last question, Can you tell me what condition I put in for each to find the sum of negative integers which are in an array and they all are even numbers

HI,

How about the following?

image

arrInt.Where(Function(i) i<0 AndAlso i mod 2 =0).Sum()

Regards,

1 Like

Initially Assign sum variable as sum=0


Try with this

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.