Hello. How do I exit a program. What is the code so that when a variable (of my choosing) is entered, The program displays a message and quits? It is probably really obvious and I probably use it everyday, but I am stupid. Any help would be appreciated. Thank you!
Thank you. But on the inside of a function, will this work to close the whole program?
For example, if I am in the middle of a function in the middle of all the code and I want the user to enter whether or not they want to make the whole program stop and quit, will this work?