02-27-2017 05:24 AM
Hi, I have a doubt that how can we compare each element in 2D array with the other elements in the same array. I tried some methods. But those didn't work. I have attached an image of the 2D array. I just want to know the logic.
Solved! Go to Solution.
02-27-2017 05:27 AM
Compare how? That they are different? They are outside of a given range?
02-27-2017 05:49 AM
Hi, Sorry to say that. Here I need a comparison of elements with the same values. If any one of the elements in the 2D array has same value or equal to the other elements in the same array I need to save that status as boolean array.
02-27-2017 08:10 AM
I am not sure I understand your requirement fully as yet. Try this one:
02-27-2017 11:30 PM
Hi,
Thanks for the reply. Can you attach the output and False 'case' of the case structure snippets?
02-28-2017 12:27 AM - edited 02-28-2017 12:35 AM
Hi,
Yes. This is the one I was seeking for. But I have one more doubt. In the attached image I have marked an area. In what situation logic inside that area is useful? With out that 'greater than' logic, I can get an output required. So whats the reason behind that comparison logic?
02-28-2017 03:48 AM
The Less Than is not really needed. You can use a TRUE constant. But the second Replace Array Subset is needed due to set the current element TRUE. The first one sets the match's element to TRUE.
02-28-2017 06:13 AM
Hi Crossrulz,
Thanks.