• @Xanvial
    link
    English
    92 months ago

    you can also use XOR operation

    return (X || Y) && !(X && Y)
    
    • @Acters
      link
      English
      2
      edit-2
      2 months ago

      I was debating on bitwise operations, but decided on super basic if statements which I think the compiler would optimize, happy to see the logical operation form too