title: How to make the equivalent of a C-style if-else statement in Erlang?
body: <p>How do I make the equivalent of a <a href="https://www.cprogramming.com/tutorial/c/lesson2.html" rel="nofollow noreferrer">C-style</a> if-else in Erlang?</p>
  
  <pre><code> if(a == b) {
     expression1
   } else {
     expression2 
   }
  </code></pre>