title: Is there a way to simplify this further?
body: <p>I feel like I could simplify this more but I'm not able to.</p>
  
  <pre><code>If A ^ B Then
      C = True
  Else
      C = False
  End If
  
  If A = True Then
      D = True
  Else
      D = False
  End If
  </code></pre>
  
  <p>Edit: I oversimplified my problem, it is my mistake. C and D are not boolean values but real values to assign to variables in a function.</p>
  
  <p>Edit2: The function looks more like this:</p>
  
  <pre><code>If hasFoo() And hasBar() Then
      C = getValue1()
  Else
      C = getValue2()
  End If
  
  If hasFoo() Then
      D = getValue3()
  Else
      D = getValue4()
  End If
  </code></pre>