Noob questions

you will need to have something as such wiithin your code :

pinMode (SWITCHL,INPUT);

and the use of

digitalRead(SWITCHL);

test the status of SWITCHL and execute what you need it to do, again IF statement will come into action.

You may want to use the debounce method to avoid incorrect reading of data.

.........

taz ..