If I have the following function:
-(BOOL) checkIfValid{
if(someThing){
return YES;
}
return NO;
}
Can I then do this in another function:
if([self checkIfValid]){
//do something
}
I am slightly confused by the BOOL type and the YES/NO values….is YES synonymous to TRUE and same for NO and false?
When in doubt refer documentation