Does this mean that for this or operator when the Frist argument is true then it returns true and of the Frist argument is false | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Does this mean that for this or operator when the Frist argument is true then it returns true and of the Frist argument is false

14th Jun 2020, 7:06 PM
Chisom Ndubuizu
3 Answers
+ 4
Worth to know, that for not specifically boolean tasks, or operator assumes the first True argument. So: 3 or 4 will be 3, as this is the first argument which is True
14th Jun 2020, 7:38 PM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
+ 2
If at least one of both is True, then 'or' returns True.
14th Jun 2020, 7:13 PM
HonFu
HonFu - avatar
+ 2
Chisom Ndubuizu A or B is True, if A or B is 1. So 1 or 0=1 0 or 1=1 1 or 1=1 0 or 0=0
14th Jun 2020, 7:38 PM
Petr