+ 2

What is a ||

||

3rd Oct 2017, 3:41 PM
ŠœŃƒŠ»Š»Š°Š±Š°ŠµŠ² Š”Š°Š½Šøс
ŠœŃƒŠ»Š»Š°Š±Š°ŠµŠ² Š”Š°Š½Šøс - avatar
6 Answers
+ 17
As an example for Luca's explanation, consider the following snippet bool b1 = true; bool b2 = false; bool b3 = false; bool b4 = true; bool x = b1 || b2; // true || false = true bool y = b2 || b3; // false || false = false bool z = b1 || b4; // true || true = true bool w = b2 || b3 || b4; // false || false || true = true
3rd Oct 2017, 4:05 PM
Babak
Babak - avatar
+ 7
"or"
3rd Oct 2017, 4:15 PM
AL.The.Flame!
AL.The.Flame! - avatar
+ 5
pipeline
5th Oct 2017, 6:32 AM
Abhishek Tandon
Abhishek Tandon - avatar
+ 4
hi, For the built-in logical OR operator, the result isĀ trueĀ if either the first or the second operand (or both) isĀ true. This operator is short-circuiting: if the first operand isĀ true, the second operand is not evaluated.
3rd Oct 2017, 4:20 PM
Nanda Balakrishnan
+ 3
it is Boolean operator for 'or'
3rd Oct 2017, 3:48 PM
Luca
Luca - avatar
+ 2
In SQL (except MySQL) it's string concatenation.
3rd Oct 2017, 6:01 PM
1of3
1of3 - avatar