Having trouble on solving the following tasks

PaulS:

  for(int i; i<rows; i++)

{
  if (Table[i+1][1] && Table[i][1])
  {
    Serial.println(Table[i][0]);
    delay(100);
  }
  }



The if statement in this loop does not look anything like the (correct) if statements you were using before. Try this:


for(int i; i<rows; i++)
  {
  if(ThermResist >= Table[i+1][1] && ThermResist <= Table[i][1] )
  {
    Serial.println(Table[i][0]);
    delay(100);
  }
  }

You got me...i am nothing more than an idiot when coming to using for loops....i haven't thought about using that if statement up and until you posted a reply about it....and it worked...May i ask, do you happen to know where to find for loop examples i could use to practice for arduino? because i really need to fully grasp the concept in my head, i don't want to just type it or write in something without knowing what it does(which you have explained in the previous replies, and i've understood the concept theoritically, but applying it in a programming statement was hard for me to implement). =(