I'm lacking something fundamental in my understanding of OR and AND operators.
test is true in the following statement:
test := 2<1 OR 4>2 AND 7<8
I'm breaking it down like this, but I'm obviously wrong:
test := False OR True AND False
becomes:
test := True AND False
becomes:
test := False(0)
but the value of test comes back as 1(True).
can somebody explain?
Thanks!
why is: (test := 2<1 or 4>2 and 7<8) true?
Re: why is: (test := 2<1 or 4>2 and 7<8) true?
I considered this but then I come up with:
test := False OR True AND False
becomes:
test := False OR False
becomes:
test := False(0)
which again there is flaw in my thinking.
test := False OR True AND False
becomes:
test := False OR False
becomes:
test := False(0)
which again there is flaw in my thinking.
Re: why is: (test := 2<1 or 4>2 and 7<8) true?
It worked for me.
Your initial statement is true because the last two expressions are true.
Code: Select all
Send % False OR True AND False
Re: why is: (test := 2<1 or 4>2 and 7<8) true?
Got it. I'm obviously having a bad go of it today.
Thanks.
Thanks.