title: XOR in Swift 5?
body: <p>I'm trying to do an XOR operation in Swift 5. The documentation does not seem to mention explicitly doing it with two boolean values here:</p>
  
  <p><a href="https://docs.swift.org/swift-book/LanguageGuide/AdvancedOperators.html" rel="noreferrer">https://docs.swift.org/swift-book/LanguageGuide/AdvancedOperators.html</a></p>
  
  <p>Is this possible? It says to use the <code>^</code> operation but I get the error when trying: </p>
  
  <pre><code> card != nil ^ appointment.instructor == nil
  </code></pre>
  
  <blockquote>
    <p>ERROR Adjacent operators are in non-associative precedence group 'ComparisonPrecedence' </p>
  </blockquote>