I have these two arrays, namely ArrayForSequencying and ArrayForMatchGame.
I need to replace the the 2nd value in ArrayForMatchGame based on the 3rd value in Array for Sequencing
if the 1st value of ArrayForMatchGame <> 0 and is equal to the 2nd value in ArrayForSequencing:
ArrayForSequencing
0 with 2, 5, 1
1 with 3, 4, 1
2 with 4, 1, 2
3 with 5, 2, 2
4 with 6, 3, 3
and so on
ArrayForMatchGame
0 with 0,0 should be left as is
1 with 3,0 should become 3, 3
2 with 5,0 should become 5, 1
3 with 2,0 should become 2, 2
4 with 1,0 should become 1, 2
5 with 4,0 should become 4, 1
and so on
I have tried various combinations of "For each XY element" or "For each X element" "For" loops but I am still struggling to get it right. (I tried pasting the image to this post, but nothing comes out when I page between the img placeholders.) Thanks in advance.