title: Comparing two BOOL values
body: <p>In my instance method, would like to compare a BOOL parameter with the content of a static variable, for instance:</p>
  
  <pre><code>- (NSArray*)myMethod:(NSString*)someString actualValuesOnly:(BOOL)actualValuesOnly {
  static NSString *prevSsomeString;
  static BOOL prevActualValuesOnly;
  static NSArray *prevResults
  
  if ([someString isEqualToString:prevSomeString] &amp;&amp; 
                ([actualValuesOnly isEqual: prevActualValuesOnly]) 
                 // HOW TO COMPARE THESE TWO BOOLEANS CORRECTLY?? 
      { return prevResults; }// parameters have not changed, return previous results 
  else { } // do calculations and store parameters and results for future comparisons)
  </code></pre>
  
  <p>What would be the correct way to do this?</p>