title: Erlang if else statement
body: <p>Im trying to do a method where it checks the value of two atoms, if they are equivalent to each other it gonna say it's false and the other way around, if they aren't equivalent it's gonna be true.</p>
  
  <p>my code looks like this:</p>
  
  <pre><code>b_not(X, Y) -&gt;
  if
      X=:=Y -&gt;
          false;
  else
          true;
  end.
  </code></pre>
  
  <p>Here the name of my method is "b_not" which stands for boolean_not. and I check with the if-statement if X is exactly equal to Y it gonna say false. Ok that part alone I could do. 
  But my problem comes to when I try to make the else-statement.
  I don't seem to get this part, I tried to search around on the internet, but I don't seem to get it.
  So if you could tell me how the if-else-statement works in Erlang, I would be pleased!</p>
  
  <p>Thanks Alexein!</p>