Saving a switch input to choose mode of operation

Thank you for your input! I will look at your code until it makes sense to me! lol. I appreciate it! This definitely gets me in the right direction.