Yes u can't use = In that statement cause that would mean you are Re-assigning it with either the true or false , I could use == (equals ) , but like the other replies said , u don't need the operator