title: Better way to write if condition
body: <p>Is there any better way to write this condition?</p>
  
  <pre><code>if (self.expense.nil? &amp;&amp; self.income.nil?) || (!self.expense.nil? &amp;&amp; !self.income.nil?)
    puts "test"
  end
  </code></pre>