I'm doing a little exercise to level up my skills working with loops and arrays. I'm confused as to why the rowIsHeader variable doesn't work. But when I drop the value of rowIsHeader into the conditional it works fine. http://jmp.sh/RHOqttF
You variable i is only avaiable (scoped) to the block of code that's nested in the for loop since it's declared there. https://msdn.microsoft.com/library/bzt2dkta(v=vs.94).aspx
Ahh...duh! So obvious now that you say it. But that's why I'm doing this exercise.