title: If statement in (Objective-)C
body: <p>I want to check different variables BUT if only just one meets the condition required then I get an alert view. I tried with <code>if( &amp;&amp; )</code> but it didn't work the way I want it. I think what I am looking for is something like an "or" statement.</p>
  
  <pre><code>if(_d0 == 0 &amp;&amp; _d1 == 0) {
      UIAlertView *alert = [[UIAlertView alloc] initWithTitle: @"Input Error"
                                                      message: @"Need to Choose Sections"
                                                     delegate: nil
                                            cancelButtonTitle:@"OK"
                                            otherButtonTitles:nil];
      [alert show];
      [alert release];
  }
  </code></pre>
  
  <p>So I want it to check if _d0 = 0 or _d1 == 0 , even if one of these two is 0 i need the alert view to pop. The thing is that If i do separated statements, then if the user doesn't choose any of the two sections,it will pop two alert views, which will be annoying cause in some cases the user needs to choose 5 different sections.</p>