Reading digital inputs to set a variable's value SOLVED

The problem I'm having is from Line 80 to Line 96 of the code. The lines after 'delay(2000);'. I'm trying to set the value of the variable 'mode' to 1, 2 or 3, depending on the states of digital inputs selectPin1 and selectPin2.

const int ledSwitch = 2;
const int alarmSwitch= 3;
const int alarmPin = 4;       
const int ledPin1 = 6;
const int ledPin2 = 7;
const int ledPin3 = 8;
const int selectPin1= 9;
const int selectPin2= 10;
// Variables 
int buttonPushCounter = 0;   // counter for the number of ledSwitch button presses
int buttonState = 0;         // current state of the ledSwitch button
int lastButtonState = 0;     // previous state of the ledSwitch button
int alarmPushCounter = 0;   // counter for the number of alarmSwitch button presses
int alarmState = 0;         // current state of the alarmSwitch button
int lastAlarmState = 0;     // previous state of the alarmSwitch button
int mode;
void setup() {

  pinMode(ledSwitch, INPUT);
  pinMode(alarmSwitch, INPUT);
  pinMode(ledPin1, OUTPUT);
  pinMode(ledPin2, OUTPUT);
  pinMode(ledPin3, OUTPUT);
  pinMode(alarmPin, OUTPUT); 
  pinMode(selectPin1, INPUT);
  pinMode(selectPin2, INPUT);
  Serial.begin(9600); 
}

void loop() {

  alarmState = digitalRead(alarmSwitch);// read the pressure switch input pin

  if (alarmState != lastAlarmState) { // compare the buttonState to its previous state

      if (alarmState == HIGH) { // if the state has changed, increment the counter

      alarmPushCounter++;

    } 
    else {
      alarmPushCounter++;

    }
    delay(50);// Delay to avoid bouncing
  }  

  lastAlarmState = alarmState;// save the current state as the last state



    buttonState = digitalRead(ledSwitch);

  if (buttonState != lastButtonState) {
    if (buttonState == HIGH) {

      buttonPushCounter++;

    } 
    else {
      buttonPushCounter++;

    }

    delay(50);
  }

  lastButtonState = buttonState;


  Serial.println(mode);

  Serial.println(digitalRead(selectPin1 ));

  Serial.println(digitalRead(selectPin2));

  delay(2000);

  if(digitalRead(selectPin1 == HIGH ))
  { 
    mode = 1;
  }  

  else if
    (digitalRead(selectPin1 == LOW && digitalRead(selectPin2 == LOW)))
  {
    mode = 2;
  }  

  else if

    (digitalRead(selectPin2 == HIGH))
  { 
    mode = 3;
  }

I'm using an Arduino UNO. Pin 9 (selectPin1) goes to Pin1 of a three pin jumper block. This pin is also connected to ground through a 10K resistor. Pin 10 (selectPin2) is connected to Pin 3 of the jumper block which is also connected to ground through a 10k resistor. Pin 2 of the jumper block is connected to 5 v.

I'm using the Serial Monitor. No matter the state of selectPin1 and selectPin2, 'mode' always equals 1. I've tried using 'if' and 'if else'. 'If' would compile but give similar results. I couldn't figure out how to get the 'if else' to compile. My electronics experience dates from when transistors were state of the art and my programming experience is limited to modifying working programs to suit my needs. Thanks for any help.

if(digitalRead(selectPin1 == HIGH ))

Go have a look at some examples that use digitalRead in an if statement. See where you went wrong with the parenthesis? You're reading from pin 0 and only pin 0 right now.

Thank you very much.
This works.

if(digitalRead(selectPin1) == HIGH )
  { 
    mode = 1;
  }  

  else if
    (digitalRead(selectPin1) == LOW && digitalRead(selectPin2) == LOW)
  {
    mode = 2;
  }  

  else if

    (digitalRead(selectPin2) == HIGH)
    { 
    mode = 3;
  }