The "!=3D" operator returns 0 or 1 based on the comparison ~ Bob Ammerman RAm Systems > -----Original Message----- > From: piclist-bounces@mit.edu [mailto:piclist-bounces@mit.edu] On Behalf > Of Josh Koffman > Sent: Saturday, August 29, 2015 10:45 PM > To: Microcontroller discussion list - Public. > Subject: Re: [PIC] XC8 Bit Technique? >=20 > On Fri, Aug 28, 2015 at 10:35 AM, Bob Ammerman > wrote: > > Oops, MSBit version should be: > > > > portbit =3D (output_byte & 0x80) !=3D 0; > > > > (I had the parentheses wrong) >=20 > Hi Bob, >=20 > Ah, I wondered why you had just the one variable in parentheses. I've not > seen !=3D used as an operator though, only as a comparison. How does that > work? >=20 > Thanks! >=20 > Josh > -- > A common mistake that people make when trying to design something > completely foolproof is to underestimate the ingenuity of complete fools. > -Douglas Adams > -- > http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist --=20 http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .