IBAction is defined as a void.
When you see:
-(IBAction)myButtonWasPressed

id)sender;
This translates to
-(void)myButtonWasPressed

id)sender;
IB uses IBAction to understand that you can make a connection.
As it was already pointed at, you don't want to put an IBAction in an if.
Are you trying to recursively call your function? Is that your intent?