+ 1
Whats the difference between "and" and "or"???
if u want yo put two booleans on the same líne, you can write and,so it wil tell you true or false, and you can write or, but it gives you the same output.Whats the difference??
5 Respuestas
+ 4
And is if ___ and ___ have the same value, then do ____. Or is ___ or ___. So or is one or the other, and is both of them.
+ 1
And means that both A and B are true for the entire statement to be true.
Here is a quick truth table
A. B
0. 0
0. 1
1. 0
1. 1
For both A and B to be true both must be 1, which is our AND statement.
OR is either one or the other is true, so if A is true then the entire statement is true. Same with B, if it is true then the entire statement is true regardless of the other condition.
+ 1
and return true if both are true. or return true if either one is true
+ 1
thank you so much
+ 1
it really helped me