Basic OR logic:
x y x&y
--------------
1 0 | 0
1 1 | 1
0 1 | 0
0 0 | 0
In binary the numbers are represented as follow:
4: 100
Type: Posts; User: Krumpir
Basic OR logic:
x y x&y
--------------
1 0 | 0
1 1 | 1
0 1 | 0
0 0 | 0
In binary the numbers are represented as follow:
4: 100
Those are used to represent boolean operators. The && is used for AND statements and the || for OR statements.
The expression "A || B" will return true if either A or B where "A && B" will only...