Jun-21-2021, 01:03 PM
What is the surprise for you?
From the docs
Also, this part of the docs
Also check Truth Value testing
From the docs
Quote:The expressionx and y
first evaluatesx
; ifx
is false, its value is returned; otherwise,y
is evaluated and the resulting value is returned.
The expressionx or y
first evaluatesx
; ifx
is true, its value is returned; otherwise,y
is evaluated and the resulting value is returned.
Also, this part of the docs
Also check Truth Value testing
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs