How to use a nested For Each loop

HI,

I think it should be as the following.

if UserGuessArray(i) = RandomNumber(j) AndAlso i<>j

Can you also try the following sample?

Sample20231016-4L.zip (3.4 KB)

Regards,

1 Like