title: Basic Boolean Question in Excel VBA: Output -1
body: <p>True * True * True = -1</p>
  
  <p>When I multiply an odd number of boolean variables equal to true, the result is -1. Why is this?</p>
  
  <p>Isn't this:
  TRUE * TRUE * TRUE</p>
  
  <p>the same as this:</p>
  
  <p>1 * 1 * 1?</p>
  
  <p>Why does vba return a -1, and Excel return a 1 when evaluating this? </p>
  
  <p>I've been using writing code like this </p>
  
  <p>If Asb(TRUE * TRUE * TRUE) =1 then...</p>
  
  <p>or this </p>
  
  <p>If TRUE * TRUE * TRUE &lt;> 0 then ... </p>
  
  <p>I would like to understand why the code behaves this way. Thanks in advance for an explanation. </p>