On Thu, 17 Jun 1999, Clyde Smith-Stubbs wrote: >(byte2 &= ~BITMASK2), (byte1 & BITMASK1) && (byte2 |= BITMASK2); That is food for thought. Let me see if I get this. (byte2 &= ~BITMASK2), (byte1 & BITMASK1) && (byte2 |= BITMASK2); | | | Ok I can see this works, | | | since this part gets evaluated -+ | | and if it's false then | | because of the logical AND ---------------+ | then the last part is not evaluated ----------------+ and the assignment does not take place. But it is a little too scary for me to actually use. I'll stick to: (byte2 &= ~BITMASK2), (byte1 & BITMASK1) ? (byte2 |= BITMASK2) : 0; Thanks for the good examples, it's opened my eyes up a lot to the intricacies involved when combining logic and math in one statement. Best regards, Bob