If statements

Hello you wonderfull people!

I have been playing with the arduino Uno for 2 days, completed a beginners course, and at the end there was a challenge to make a slot machine with LED's. you push a button and if you get a row of LED's you win.

Here's my issue:

// Message if you win or lose
//
//               Lower Row                                                   Middle Row                                           Upper Row
if ((pinRow1 == 5 && pinRow2 == 8 && pinRow3 == 11) || (pinRow1 == 6 && pinRow2 == 9 && pinRow3 == 12) || (pinRow1 == 7 && pinRow2 == 10 && pinRow3 == 13))  {  

  delay(1000);
PORTD = B00000100;   //turns off all the LED's
PORTB = B00000000;   //
  delay(200);
  digitalWrite(pinRow1 = 5, HIGH);     //Green LED of GLORY!!!
  
}
else {
  
  delay(1000);
PORTD = B00000100;     //turns off all the LED's
PORTB = B00000000;     //
  delay(200);
  digitalWrite(pinRow1 = 7, HIGH);   //Red LED of SHAME!!
  
}
  delay (30);
    }
  }

The if statement seems to be the problem. The "else" is never executed even if i lose. Only get the "win" result.
Everything works fine if i only work with one row but i need it to work with all three.
Is there a way to crank all the rows in one if statement?

Here's the link of the working project https://youtu.be/9j87A-OAn2U

Use prints to the serial monitor on variables to see if they are what you think they are.

If you post the whole sketch, some here may try it. As larry says, use Serial.println statements to see what the data is in your pinRow variables.