kmatt999:
int fSS = 4; //forewardSwitchState
int rSS = 5; //rearwardSwitchState
void setup() {
pinMode(fSS, INPUT);
pinMode(rSS, INPUT);
if ((rSS == HIGH) and (fSS ==LOW)) {
Those are pin numbers. You have to use digitalRead(pinNumber) to get the state of the pin.