HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

XOR in JASS

12-30-2003, 04:36 AM#1
Silenkiller
Is it possible to use or implement the XOR operation in JASS? I want to use it for key encryption. If it's possible, could you explain how?

Thanks!

EDIT: After giving a bit more thought to this, I think it might be possible using a series of AND and OR operations...
12-30-2003, 05:09 AM#2
weaaddar
check out the jass vault theres the tranditional xor (if (true xor false) returns true, (false xor false) && (true xor true) return false) and bitwise xor as well.
12-30-2003, 05:32 AM#3
Silenkiller
Thanks a lot :D

Strange that I didn't find anything on a search tho...o well :gsmile:

*edit2: n/m.. found it
01-02-2004, 03:35 PM#4
Vexorian
Sorry for posting this, but isn't the XOR thing already implemented?

I guess you just need a BooleanA != BooleanB