Returning inside a switch case, does it go back to the scope of the function, or does it return for the function?
#4

I'm calling the function inside an if statement, if that's what you were asking(if(example(variable) == 1), I kind of knew what returns did, I've been using them obviously, but I wasn't sure how the scope of the return worked, if it went back a layer or if it simply did the equivalent of a break.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)