Menu

How to XOR two variables

Help
2009-03-23
2013-05-30
  • Nobody/Anonymous

    I need to XOR two variables together, have tried a few variations but nothing works. Anyone have a suggestion on how I can do it?

     
    • Nobody/Anonymous

      This should work (result = var1 XOR var2):

      result = var1 # var2

       
    • smartroad

      smartroad - 2009-03-25

      Okay I am an idiot LOL

      Thanks for that, although it turns out the problem wasn't that line, I had called the Status.c incorrectly two lines above where I was XOR'ing

      Cheers :D

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.