Noob getting confused by booleans
In the if statement tutorial i got to the end of it and say these boolean statements and dont under stand how any of those eqaul to false or true
A. !( 1 || 0 ) ANSWER: 0 //how is that so?
B. !( 1 || 1 && 0 ) ANSWER: 0 (AND is evaluated before OR) //how is that so?
C. !( ( 1 || 0 ) && 0 ) ANSWER: 1 (Parenthesis are useful)
Cause all i see its saying is Not 1 or 0
Not 1 or 1 and 0 // By the way does 1 and 0 make it 10 or is the and function like adding ?
Main question is how is not 1 or 0 eqaul to False When i see no variable around to define wat the number is
thanks for clearing up the and question
but wat im trying to ask is how do i no wat the number is in these 3 questions