I got a headscratcher: someone submitted code to test whether all of some checkboxes were unchecked, and it indicated True when an even number were checked. The code looked something like:
if (box1.checked == box2.checked == box3.checked == box4.checked == box5.checked == false) ...
and I read it naively as: if each one is false... But this was incorrect. I figured out why (C# evaluates from left to right, and the result of a boolean compare is a boolean: false == false evaluates to true), but I wondered if this shows up often, and has a name? I guess I would name it Chained Falsehood or maybe False Decay as it would be fine if all operands were True.
The same idea works fine with assignment, so I can see why the coder tried it this way.
Ok, based on comments, this should not be called an anti-pattern because it is a bug. I think it should be called an idiom from another language. But vanity of vanities, thy name is Python, and its name should be called Haddock's Ayes.
The Boolean Centipede
in reference to imdb.com/title/tt1467304