From: yermej Date: 2007-11-28T15:30:00+09:00 Subject: Re: Binary Logic, Bug or Feature? On Nov 27, 10:43 pm, Christian wrote: > It should work if you use && instead of and. Not sure why that is, but > I'm experencing the same thing as you when doing x = true and false, > but it works as expected when using x = true && false. > This also happens in Perl and maybe other similar languages. The English versions of the logical operators (and, or, not) have lower precedence than the symbolic versions (&&, ||, !). Why? I don't know - the languages were just designed that way. Jeremy