Thank you very much for your help aGerman! I feel rather ignored that I forgot about this. I also appreciate the quick explanationaGerman wrote: ↑03 May 2018 15:06Correct.But if what's in my head is correct, then XOR would return BOOL= 0 during this case.The least significant bit is 0 if the result of the addition was either 0 or 2.Code: Select all
set "XOR(b1,b2)=((b1+b2)&1)"
But Batch already supports binary XOR, hence ...... would have been easier.Code: Select all
set "XOR(b1,b2)=(b1^b2)"
Steffen
Algorithmic conditions, and returns????
Moderator: DosItHelp
-
- Posts: 175
- Joined: 17 Jan 2016 23:55