Code help

switchOpenState = digitalRead(switchOpen);


 switchStopState = digitalRead(switchOpenStop);

Look again - it isn't that difficult.