Code help

jucasan:
Sorry about the code. Next time I'm going to use the tags.

This line of code

const int switchOpenStop = 3; //Switch open stop

is assigning pin #3 or telling switchOpenStop=3??

For every instance "switchOpenStop" is used, you could replace with the number 3. They are the same once declared.

Even if you used it in "pinMode(switchOpenStop, OUTPUT);" it still is the same as putting a 3 in there.