How would I code this?
I want to make a progressbar that runs when a button is clicked.
However there is also a checkbox that affects the whole thing.
If the checkbox is checked, the button works and starts the progress bar.
If the checkbox isnt checked, an error message comes up when the button is pressed.
Please help!


