title: Haskell multiple conditions of If
body: <p>I am having problems with the following exercise:</p>
  
  <p>Write a function that receives three Ints and sums them if they are all positive and returns 0 (zero) otherwise.</p>
  
  <p>What I have done is the following:</p>
  
  <pre><code>sum' :: int -&gt; int -&gt; int -&gt; int
  sum' x y z = if x &gt;= 0, y &gt;= 0, z &gt;= 0 then x+y+z else 0
  </code></pre>
  
  <p>I don't know how to make multiple conditions on an if, not sure if this is done with logical "connectors" (like <code>||</code> or <code>&amp;&amp;</code> in Java) or if it is done in a similar way to the code I wrote.</p>