title: Why does 0 integer value behaves as false in if statement in groovy?
body: <p>I wrote this part of code.</p>
  <pre><code>Integer value = 0
  
  if(value) {
      print &quot;true&quot;
  } else {
      print &quot;false&quot;
  }
  </code></pre>
  <p>And the output of code is <code>false</code>.
  Can someone explain me why does Integer 0 value behaves as false in this if statement when it is not null and it exists?</p>