+ 1
Why is even (True==False) or True is equal to True
4 ответов
+ 14
(True == False) or True
(False) or True
True
+ 11
Is 1==0?
Answer is 'no'. no == false
(false) or true == true
+ 9
What wisdom said;
then the compiler checks False||True statement, which is evaluated to be true, since one of the arguments is true.
How the OR (||) operator works
T||T=T
T||F=T
F||T=T
F||F=F
T~True F~False
+ 7
True==False results in False.
This would break it down to True||False.
The system is checking for a True output. So, if one of the options in a || condition is true, it is evaluated as true.