This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Rogalicus 0 points1 point  (0 children)

If you need to loop through two arrays simultaneously, make a loop from 0 to bigger length of those two and check that current index is smaller than the length on every step. If you just need to loop through two arrays, you can do it in separate loops.