I probably didn't ask the question right; but, I have a webpage where agents are entering information about trucks they want insured. I want to break out of a function when a button push occurs.
As agents are entering units, the first thing we ask for is the model year. This signals the beginning of a new entry. However, when they are finished with vehicle entry they can push a button called "Done with Units." When this occurs I want to break out of the first function and go to the function triggered by the button.
In other words each field, like the model year, has a function that handles the information received in that field. I want the direction of the program to change if and when the Done with Units button is pushed. How can I recognize that? Is it an "else if?" And, if so, how do I code it?
As agents are entering units, the first thing we ask for is the model year. This signals the beginning of a new entry. However, when they are finished with vehicle entry they can push a button called "Done with Units." When this occurs I want to break out of the first function and go to the function triggered by the button.
In other words each field, like the model year, has a function that handles the information received in that field. I want the direction of the program to change if and when the Done with Units button is pushed. How can I recognize that? Is it an "else if?" And, if so, how do I code it?
Comment