0
what is differance between && || then his are similar and same
gives me answer
3 Antworten
+ 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.
+ 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
+ 1
&& Is going to be an AND
|| Is going to be an OR