That’s very poorly formatted code but in general an empty return is just that, it escapes the rest of the conditional and returns to the normal code flow outside of the conditional.
Return does not escape a conditional, it escapes a function. Using it inside of the Update function will exit the Update right there, meaning nothing else in the function will run that frame. I know this might feel like nitpicking terminology, but it’s important.
You might also be interested in the break keyword, which does the same thing for a loop (for, foreach, do, do-while). That doesn’t escape a conditional either, unless you just happen to be inside of a conditional when you break the loop it’s inside of (just FYI).
It’s worth noting that a 3 second google search for “return c#” or “return javascript” would’ve brought you to the MSND Reference explaining exactly what it does. You don’t really have to post EVERYTHING on the support forum- especially not fundamental programming language stuff.
@DonLoquacious
Thanks for the answer. I really looked up forum search, google, msdn documentation, I couldnt find a plain answer like yours(Really appreciated!), at least this type of usage with unity. Hope this thread helps others like me…