Comparing Arrays and generated a 3rd one

Answered

Hi all,

Maybe my brain is just tired, but I not getting a way to make two arrays comparison.

I have a list with 6 products to be consumed listed in an array DayDisc._discs.ClaimsList

and another array that shows the products consumed: DayDisc.ClaimConsumed

I need to compare the exact position on the ClaimConsumed and create a 3rd array with booleans.

in the example will be [True, False, False, False, False, False] since the ClaimConsumed is in the first position.

However if I have the ClaimConsumed like [Boost my energy, Better physical performance] the 3rd array should show True on position 1 and 5 like [True, False, False, False, True, False]

I have tried some For Each loop but dind't succeed. Any idea is really appreciated.

2 replies