Hi Everyone, I am new to UI path and have been working on RPA Developer trainings. I was working on one of the assignments where I am trying to find out biggest and smallest numbers out of an array using for each loop. I am using following conditions:
For each num in arrNumbers
If num > maxNum, then maxNum = num
If num < minNum, then minNum = num
When I try to run the program, I am getting ArrayOutofRange exception. I am not sure what I am doing wrong. Would anyone please help me out?
Thanks,
Kush
Hi
Welcome to uipath community
To get the maximum value from a array of integer
Use this expression Yourarrayvariable.Max.ToString
And for minimum value Yourarrayvariable.Min.ToString