Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
But why would you want to make life difficult? What reason do you have for wanting to solve it another way?
MrAl said:You might be reading it as: "less than AND equal to" which would not be the same thing.
steveB said:Although, the expressions are logically correct, they might seems silly when the numbers are known. You may wonder, "why include the false part, and why not only retain the true part, and why use the or-operation at all".
Thank you, MrAl, Steve.
No, I wasn't reading it with "and". But your examples really helped me. Thanks.
Exactly. It really seems silly when the numbers are known and this is what troubles me. I don't have any problem when variables are used.
Regards
PG
MrAl said:Another way to look at this when the numbers are integers such as cars, is:
nA<(nB+1)
There you have a different relationship that says the same thing without using the equals sign.
nA<=nB nA<(nB+1)
0<=2 0<3 Both true
1<=2 1<3 Both true
2<=2 2<3 Both true
3<=2 3<3 Both false
4<=2 4<3 Both false