title: Referring to BOOL values in Objective-C methods
body: <p>this is a small portion of the code:</p>
  
  <pre><code>@interface
  BOOL isCarryingmallet;
  
  @implementation
  
  -(BOOL)isCarryingWeapon {
     return isCarryingMallet;
  }
  
  -(int)getWeaponDamage {
      if (isCarryingMallet) 
          return kVikingMalletDamage;
      else
          return kVikingFistDamage;
  }
  </code></pre>
  
  <p>I don't understand how this works. Does <code>return isCarryingmMallet;</code> return YES or NO? Why isn't there an <code>== YES</code> in if <code>(isCarryingMallet)</code>? Why is it <code>if (isCarryingMallet)</code> not <code>if (isCarryingWeapon)</code>.
  Thanks for answering my newb questions!</p>