Basically my question is does saying not affect the whole if statement, even if I added an or or and in it, or does it affecting only the part that does not begin with an or or and? 
EDIT:
Some people tried to send me another similar question(thanks for the help!), but it was talking about the hierarchy, while I was talking about whether or whether not the not affects the whole if-statement.
 
     
    