I have code which deals with an event listener, and I need the code to pause and wait for the event before continuing execution. However, this code is run inside of a switch() statement. Is there a way to do something like this to exit the case?
case(number): if(value){break;}
This is being done in code.org by the way.
A break will allow you continue processing in the function. Just returning out of the switch is fine if that's all you want to do in the function.