SyntaxFix
Write A Post
Hire A Developer
Questions
void foo() { /* do some stuff */ if (!condition) { return; } }
You can just use the return keyword just like you would in any other function.