0

what is differance between && || then his are similar and same

gives me answer

10th Sep 2018, 6:07 PM
Gunajn shrimali
Gunajn shrimali - avatar
3 Respuestas
+ 2
&& is also called AND. When you compare two values and if one of them is false then the answer would be false, in AND, two values needs to be true in order to have a true result while || is also called OR. When you compare two values and if one of them is true and the other one then the answer would be true.
10th Sep 2018, 6:25 PM
MDJ_
MDJ_ - avatar
+ 1
1) && this is logical "AND" ,means if you want to check two conditions at a time you will need this according to your choice..If you want to execute a code if both conditions are true at same time you have to put && between both conditions 2) || this is logical 'OR', means if you want to execute a code if one conditions is true from both of them, you have to put || between both conditions
10th Sep 2018, 6:24 PM
Mustufa Ansari
Mustufa Ansari - avatar
+ 1
&& Is going to be an AND || Is going to be an OR
11th Sep 2018, 3:10 AM
Potato Hacker
Potato Hacker - avatar