I think I’ve seen the light!
Working through all of your examples with numbers, and with both AND (
&&) and OR (
||) I can see that the 2 ‘facts’ that I’ve stated, together with the four examples, in my previous post are correct. I came at it from the angle of an
if(statement) with comparison expressions, because that was what was used in the exercise which first triggered my questions. Thanks for getting me to also come to the same conclusion from the numbers angle - that helps to prove it.
I can also see how we can use the same examples to prove De Morgan’s Laws, which @chrisgallegos mentioned. I’ll probably experiment with that a bit more.
I’m going to wait until I’ve covered Functions before attempting this! I know when to pause and take stock, before trying to bite off more than I can chew (for the time being at least)!