So I had a previous question but realized I posted the wrong offending code. I\'ve marked the offending statements below.
What I am trying to do is set the preceden
If you put a return, then the function returns before the break is executed and therefore the break will never be reached.
return
break
Instead you could use a variable that you set to a desired value and after the switch return that. Or just get rid of the break statements.