Does return inside an if() which is inside a for() - return from the if() or the for()?

return

Solution

In C-like languages, `return` exits the entire function. `break` will exit the innermost loop (`for` `do...while` or `while`)

Problem

Ok, I'm unsure if my return line will end the for() loop or just the if() question? Example: ``` for(;;) { wait(1); if(something) { tokens = strTok(something, " ") if(tokens.size < 2) return; } } ``` I'm guessing that it'll just return from the if(something) question but I just want to be sure...

Original source