Both "&&" and "||" are logical operators. The difference of them is as follows. (TRUE && TRUE)==TRUE (TRUE && FALSE)==FALSE (FALSE && TRUE)==FALSE (FALSE && FALSE)==FALSE (TRUE || TRUE)==TRUE (TRUE || FALSE)==TRUE (FALSE || TRUE)==TRUE (FALSE || FALSE)==FALSE