I'm pretty much new to Objective C but I've had some experience in Visual Basic. What's the equivalent of the Exit Sub statement to stop executing code if conditions aren't met? I'm talking along the lines of
If Some.Condition.Is.Not.Met Then
Exit Sub //Please don't execute any more code in this method
Is this the correct way to make it work?
-(BOOL)methodThatQuitsOut {
[SomeCode GoesHere];
Other.code = Goes.here;
if (condition != present) {
return NO;
}
Does this code continue to run?;
}