title: Basic If Statement with String
body: <p>If I write the following function, I get a warning and an error on the third line.</p>
  
  <pre><code>int myYear (NSString *timevar)
  {
  if ([timevar isEqualToString:@"yr"]) {
      return ...
  }
  }
  </code></pre>
  
  <p>Xcode says</p>
  
  <ol>
  <li>Semantic Issue: Implicit declaration of function 'If'...</li>
  <li>Parse Issue: Expected ';' after expression</li>
  </ol>
  
  <p>What am I doing wrong?</p>