Posts: 294
Threads: 12
Joined: Sep 2015
Reputation:
0
do if (JobData[i][jobID]) not if (JobData[id][jobID])
Posts: 10,066
Threads: 38
Joined: Sep 2007
Reputation:
0
You're increasing i twice per iteration; once before the loop body and once after it. This means it'll skip every other item. So the only items that get checked are 1, 3, 5, 7, etc. Remove the ++ in the condition. And it should probably be < instead of <= as well.