if (b1 || b2 || b3 || b4 || b5 || b6 || b7 || b8)
if all b1 , b2 , b3 are decleared as booleans. What does this line of code mean? ie does it mean if all booleans are true then the next set of code is exectuded inside / under the if statment?
calm down.
when writing a if, "||" means OR and "&&" means AND
so if you write if(b1 || b2 || b3) it will check if b1 OR b2 OR b3 is true, only 1 is needed to make it work.
but if you write if(b1 && b2 && b3) it will check if b1 AND b2 AND b3 is true, all of them are needed to make it work
now to check if it's NOT true, you can but the "!" keyword before it, here are some examples :
if(!b1 || !b2 || !b3)
if(!b1 && b2 && b3)
if(!isTouching(Actor.class))
if(number == 5)
etc
there is an error with my code please help
i said
boolean b1 = username1.equals(uname1); etc etc etc.
and its underlined and apparently when the compiler reaches this line it has an error and appaently this is caused from that line